summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-02-06 07:54:13 +0100
committerDan McGee <dan@archlinux.org>2007-02-06 07:54:13 +0100
commit26e7d16d0edd023efa10db56b745c3501f2d5db9 (patch)
tree5f925f6b232bbc701afb2db327cb24d670c26a28
parent2f23b69af86c68c3d9197458e9433642b1044c79 (diff)
downloadpacman-26e7d16d0edd023efa10db56b745c3501f2d5db9.tar.gz
pacman-26e7d16d0edd023efa10db56b745c3501f2d5db9.tar.xz
* Added some backwards compatability stuff to makepkg, along with helpful
warnings so people aren't caught off guard in the future. * Added a temp fix for a bug in file 4.19 where bziped tarballs were returning type "application/empty".
-rwxr-xr-xscripts/makepkg27
1 files changed, 21 insertions, 6 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index b5732433..50e52b1d 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -120,6 +120,16 @@ check_option() {
elif [ "$lc" = "!$needle" ]; then
echo "n"
return
+ # START DEPRICATED
+ # TODO This code should be removed in the next release of makepkg
+ elif [ "$lc" = "no$needle" ]; then
+ warning "Options beginning with 'no' will be depricated in the next version of makepkg!"
+ plain "Please replace 'no' with '!': no$needle -> !$needle."
+ echo "n"
+ return
+ elif [ "$lc" = "keepdocs" -a "$needle" = "docs" ]; then
+ warning "Option 'keepdocs' may not work as intended. Please replace with 'docs'."
+ # END DEPRICATED
fi
done
# fall back to makepkg.conf options
@@ -542,17 +552,16 @@ if [ "$EUID" != "0" ]; then
fakeroot -- $0 -F $ARGLIST
exit $?
else
- warning "Fakeroot is not installed. Building as an unprivileged user"
- plain "will result in non-root ownership of the packaged files."
- plain "Install the fakeroot package to correctly build as a non-root"
- plain "user."
+ warning "Fakeroot is not installed. Building as an unprivileged user"
+ plain "will result in non-root ownership of the packaged files. Install"
+ plain "the fakeroot package to correctly build as a non-root user."
plain ""
sleep 1
fi
else
warning "Running makepkg as an unprivileged user will result in non-root"
- plain "ownership of the packaged files. Try using the fakeroot"
- plain "environment. ('fakeroot' in BUILDENV in makepkg.conf)"
+ plain "ownership of the packaged files. Try using the fakeroot environment"
+ plain "by placing 'fakeroot' in the BUILDENV array in makepkg.conf."
plain ""
sleep 1
fi
@@ -738,6 +747,12 @@ else
file_type=$(file -biz "$file")
unset cmd
case "$file_type" in
+ # START REMOVE
+ # TODO remove this with release of file v4.20, temp bugfix
+ *application/empty*)
+ cmd="tar -xf $file" ;;
+ warning "file had trouble detecting type, assuming tar"
+ # END REMOVE
*application/x-tar*)
cmd="tar -xf $file" ;;
*application/x-zip*)