oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

-Sy [package] only searches pacman, not aur #54

Open justin8 opened 8 years ago

justin8 commented 8 years ago

Similar to -Syu ignoring all packages specified, but if you specify a package with -Sy it will only search pacman and not the AUR, then fail after not finding the package in question.

ghost commented 8 years ago

i think this may actually be a "bug" (at least, unintended behaviour) in vanilla pacman as it's not actually documented in the man page. kind of cool, though- i didn't even know it could do that.

-Ss is the actual supported search function (as it.. well, actually performs a search, and a fulltext one at that), and if you want to upgrade a single package with apacman (keeping in mind, of course, that that can cause some major breakage on rolling-release distros), one would to apacman -S

(though you can get the same behaviour of pacman -Sy'ing for nonexisting packages by just leaving off the y as well, since the end result is about the same...)

i'm tempted to open an arch bug about the -Sy behaviour- either get it documented or have them at least look into it for further unintended results- but frankly it seems the project leads are assholes.

anyways, @oshazard has been a little quiet lately so not sure where he'll go with this, but wanted to let you know that i think this is a sort of "why does this even work in the first place" cases that @oshazard wasn't thinking about.

justin8 commented 8 years ago

It also normally works with -Syu. If it works on pacman I feel it should on apacman as well.

It actually installs the package, not searching for it.

-S syncs packages, and accepts input, as per the man page. -y just refreshes the list of packages, and -u adds packages to upgrade, it seems pretty clear in the man page to me. Not to mention, apacman passes through the package list to pacman, so it does handle it, but it should be passing through -Sy/-Syu and then return back to doing essentially apacman -S $@ so that it can search the AUR as well.