mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
makepkg: fix syntax error in remove_deps
This fixes a problem that occurs if you tell makepkg to remove installed dependencies (just to be sure) but there are none. As the $ was missing in front of deplist, the check never happened and 'pacman -Rn' was called which obviously failed. Dan: later reported as FS#28448. Signed-off-by: Christoph Vigano <mail@cvigano.de> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
6c78f0d560
commit
edd81f3e8b
@ -521,7 +521,7 @@ remove_deps() {
|
||||
local deplist
|
||||
deplist=($(grep -xvFf <(printf "%s\n" "${original_pkglist[@]}") \
|
||||
<(printf "%s\n" "${current_pkglist[@]}") || true))
|
||||
if [[ -z deplist ]]; then
|
||||
if [[ -z $deplist ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user