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:
parent
85fde7038f
commit
cd421c8383
1 changed files with 2 additions and 2 deletions
|
@ -114,10 +114,10 @@ print_scriptlet() {
|
||||||
error "Package $1 not found"
|
error "Package $1 not found"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
url=$(spacman -Sdp $1 | tail -n1)
|
url=$(pacman -Sddp $1)
|
||||||
filename=$(basename $url)
|
filename=$(basename $url)
|
||||||
if [ ! -f "$pac_cache/$filename" ]; then
|
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"
|
error "Failed to download $1"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue