summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-03-09 06:11:47 +0100
committerDan McGee <dan@archlinux.org>2007-03-09 06:11:47 +0100
commit68876e4eb029386dffee5c5084551bcc8cfe626d (patch)
treea1014c1b5e67f3c5c5ba617f7972f6c5db6aaad5
parent0a1ca73183dc552e5388cd8961408e4604c1bb45 (diff)
downloadpacman-68876e4eb029386dffee5c5084551bcc8cfe626d.tar.gz
pacman-68876e4eb029386dffee5c5084551bcc8cfe626d.tar.xz
* Another slight update, getting rid of -rf flags and clarifying a message.
-rwxr-xr-xscripts/makepkg5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index 397a3296..587f7340 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -492,7 +492,7 @@ if [ "$CLEANCACHE" = "1" ]; then
read answer
answer=$(echo $answer | tr [:upper:] [:lower:])
if [ "$answer" = "yes" -o "$answer" = "y" ]; then
- rm -rf "$SRCDEST"/*
+ rm "$SRCDEST"/*
if [ $? -ne 0 ]; then
error "Problem removing files; you may not have correct permissions in $SRCDEST"
exit 1
@@ -507,8 +507,9 @@ if [ "$CLEANCACHE" = "1" ]; then
exit 0
fi
else
- # SRCDEST undefined (should never happen)
+ # $SRCDEST is $startdir, two possibilities
error "Source destination must be defined in makepkg.conf."
+ plain "In addition, please run makepkg -C outside of your cache directory."
exit 1
fi
fi