diff options
author | Allan McRae <allan@archlinux.org> | 2016-03-29 14:00:02 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-05-18 07:45:55 +0200 |
commit | 7bebe4deff0afd4e220b5c4d6024bffb08bd794f (patch) | |
tree | 2edac939329bbb0577494f3c0ab8af00b790ab40 /scripts/libmakepkg/.gitignore | |
parent | 02a0bf550a22e199f48537b7eee87361b112e8a0 (diff) | |
download | pacman-7bebe4deff0afd4e220b5c4d6024bffb08bd794f.tar.gz pacman-7bebe4deff0afd4e220b5c4d6024bffb08bd794f.tar.xz |
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>
Diffstat (limited to 'scripts/libmakepkg/.gitignore')
0 files changed, 0 insertions, 0 deletions