pacscripts: Update for pacman changes

Changes to pacman mean that -Sp can be called without root permissions
and '-d' needs passed twice to completely ignore dependencies.

Signed-off-by: Karol Błażewicz <karol.blazewicz at gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Karol Blazewicz 2013-06-17 23:48:39 +02:00 committed by Allan McRae
parent 85fde7038f
commit cd421c8383
1 changed files with 2 additions and 2 deletions

View File

@ -114,10 +114,10 @@ print_scriptlet() {
error "Package $1 not found"
return 1
fi
url=$(spacman -Sdp $1 | tail -n1)
url=$(pacman -Sddp $1)
filename=$(basename $url)
if [ ! -f "$pac_cache/$filename" ]; then
if ! spacman -Sdw --noconfirm $1 >&2; then
if ! spacman -Sddw --noconfirm $1 >&2; then
error "Failed to download $1"
return 1
fi