[pacman-dev] [PATCH] makepkg: complain if an install/changelog is found as source
Dave Reisner
d at falconindy.com
Sat Aug 13 16:07:08 EDT 2011
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
bsdtar can't extract a tarball with the same path/file in it twice, but it
will gladly pack it that way... odd. Credit for the AUR for finding this.
scripts/makepkg.sh.in | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index f464014..e5840f1 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1540,6 +1540,10 @@ check_sanity() {
error "$(gettext "%s file (%s) does not exist.")" "$i" "$file"
ret=1
fi
+ if in_array "$file" "${source[@]}"; then
+ error "$(gettext "%s file found in source array: %s")" "$i" "$file"
+ ret=1
+ fi
done
done
--
1.7.6
More information about the pacman-dev
mailing list