pikaur icon indicating copy to clipboard operation
pikaur copied to clipboard

Use git ls-remote to speed-up "-Syu --devel"

Open Spixmaster opened this issue 4 years ago • 7 comments

pikaur -Vq
Pikaur v1.6.17
Pacman v5.2.2 - libalpm v12.0.2 - pyalpm v0.9.2
Description:

Currently, pikaur -Syu --devel reinstalls all "-git" packages. Could you improve the option --devel so that the git packages are only updated if the remote repository gets a new commit? Take a look at this excerpt of paru's man page. yay and paru already have it.

       --devel
              During sysupgrade also check AUR development packages for updates. Currently only Git packages are supported.

              Devel checking is done using git ls-remote. The newest commit hash is compared against the hash at install time. This allows devel updates to be checked almost instantly and not require the original PKGBUILD to be
              downloaded.

              The slower pacaur-like devel checks can be implemented manually by piping a list of packages into paru (see examples).

I would really appreciate this update as this is the last minor issue that holds me back from switching completely to pikaur. I like this project more and as it is one of the few AUR helpers that do testing. yay and paru literally have no testing at all.

Spixmaster avatar May 18 '21 13:05 Spixmaster

Hey now. Yay has tests and the components that make up paru have tests :p

Morganamilo avatar May 18 '21 14:05 Morganamilo

I did not expect that you are everywhere.😁 The issue I opened today on your project was fixed quite fast. I just installed "paru-git" and tested it out.

Spixmaster avatar May 18 '21 16:05 Spixmaster

i guess you're looking for this one? https://github.com/actionless/pikaur#how-to-upgrade-all-the-dev--git-packages-at-once

actionless avatar May 18 '21 16:05 actionless

@Morganamilo this flag combination also covered in units

actionless avatar May 18 '21 16:05 actionless

@actionless I just tested your proposal and it works. Nevertheless, this method still downloads the source code and compares the just downloaded repo with the local installation which takes some time depending on the bandwidth and amount of packages.

yay and paru do it much faster with git ls-remote. It would be great if pikaur could do it too.

Spixmaster avatar May 18 '21 17:05 Spixmaster

PRs are welcome, although i would re-label it as an performance improvement, not a feature request

actionless avatar May 18 '21 18:05 actionless

however, if you gonna implement that one, please keep in mind what not all the --devel packages supported by pikaur are only -git

actionless avatar May 18 '21 18:05 actionless