pikaur icon indicating copy to clipboard operation
pikaur copied to clipboard

Should `pikaur -G/--getpkgbuild <group>` download all the PKGBUILDs of the package group?

Open soloturn opened this issue 6 years ago • 6 comments

on a technical level it can be easy understood, that a group is not a package. but from a user perspective i would love if it gets all the packages PKGBUILDs instead of doing nothing.

$ pikaur -G gnome
Reading repository package databases...
:: warning: Following packages cannot be found in AUR:
    gnome    

soloturn avatar Aug 04 '18 14:08 soloturn

i am not sure about this, mb to write a warning what it's a group package?

because such behavior as you requested could be achieved by: pikaur -G $(pikaur -Sgq gnome)

actionless avatar Aug 04 '18 15:08 actionless

btw i've implemented it like that in pikaur because if you do pacman -Si gnome it will behave in a similar way

actionless avatar Aug 04 '18 15:08 actionless

your comment mad me check yay, man yay says: Downloads PKGBUILD from ABS or AUR. crystal clear. it is one. if it exists it downloads. if it not exists the error is "could not find package in database".

"pacman -Si", and it says "error: package 'gnome' not found". the packman documentation suggests it offers to select what you want, and i think pikaur should do the same with -G: https://wiki.archlinux.org/index.php/pacman#Installing_package_groups

pikaur is more talkative and misleading. the docu says PKGBUILDs. multiple. it says "reading the package databases" "warning: following packages cannot be found in AUR" "gnome".

soloturn avatar Aug 10 '18 06:08 soloturn

pikaur is more talkative and misleading. the docu says PKGBUILDs. multiple. it says "reading the package databases"

pikaur {-G --getpkgbuild} [options] <package(s)>

that means what you could download multiple PKGBUILDs in the way pikaur -G inxi oomox dropbox tree pacman

actionless avatar Aug 10 '18 14:08 actionless

if pikaur -G will be accepting only one package, it would require writing a shell-iteration to implement this: pikaur -G $(pikaur -Sgq gnome) on a user-side

and pacman -Si also allowing you to feed multiple package names

actionless avatar Aug 10 '18 14:08 actionless

"warning: following packages cannot be found in AUR" "gnome".

and this is something what i can actually fix :-)

actionless avatar Aug 10 '18 15:08 actionless