[pacman-dev] [PATCH] makepkg: fix syntax error in remove_deps

Christoph Vigano mail at cvigano.de
Tue Feb 14 15:31:04 EST 2012


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.

Greetings,
Christoph

Signed-off-by: Christoph Vigano <mail at cvigano.de>
---
 scripts/makepkg.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index f0a2252..e895ec7 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -519,7 +519,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
 -- 1.7.9



More information about the pacman-dev mailing list