pacman/src
Allan McRae 7bebe4deff Report local file URL for -Sp operations if package is in cache
When using "pacman -Sp" operation to get URLs of packages to download, it is
useful to know which packages are already in the file cache and do not need
downloaded.  Print packages in the cache with a file:// prefix.

e.g
$ pacman -Sp glibc
file:///var/cache/pacman/glibc-2.23-1-x86_64.pkg.tar.xz

Also use package locations in case statements rather than opersations. This
allows the ALPM_PKG_SYNCDB to fall thorough to just printing the package name
for weird serverless repo setups.

Fixes FS#15868

Signed-off-by: Allan McRae <allan@archlinux.org>
2016-05-18 15:45:55 +10:00
..
common Update copyright years for 2016 2016-01-04 13:27:08 +10:00
pacman Report local file URL for -Sp operations if package is in cache 2016-05-18 15:45:55 +10:00
util pacsort help clearly states that files contain inputs to be sorted 2016-05-05 13:52:23 +10:00