diff options
author | Christoph Vigano <mail@cvigano.de> | 2012-02-14 21:31:04 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-15 15:12:59 -0600 |
commit | edd81f3e8b505be2f7c7a18d3c28956b82264c45 (patch) | |
tree | 915eff059cf0964cd3d99ee105029dd53612c38b /scripts | |
parent | 6c78f0d56007ae5bbbaf9f15f6399e6e2967dd76 (diff) |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | 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 5e8687e7..9766c8c6 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 |