Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=7a217887c64ad7c4f0f18659e1bcd97812590b60

commit 7a217887c64ad7c4f0f18659e1bcd97812590b60
Author: Michel Hermier <[email protected]>
Date:   Wed Mar 19 09:10:13 2014 +0100

makepkg: Use shemu_realpath.

diff --git a/scripts/makepkg b/scripts/makepkg
index 6c62919..b0591b8 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1312,14 +1312,12 @@ if [ "$DEP_SUDO" = "1" -a ! "`type -p sudo`" ]; then
return 1
fi

-# convert a (possibly) relative path to absolute
-cd $PKGDEST 2>/dev/null
-if [ $? -ne 0 ]; then
-       error "Package destination directory does not exist or permission 
denied."
-       return 1
-fi
-PKGDEST=`pwd`
-cd $OLDPWD
+       # convert a (possibly) relative path to absolute
+       PKGDEST="$(shemu_realpath "$PKGDEST" 2>/dev/null)"
+       if [ $? -ne 0 ]; then
+               error "Package destination directory does not exist or 
permission denied."
+               return 1
+       fi

if [ -z $CCACHE_BASEDIR ]; then
export CCACHE_BASEDIR=/var/cache/ccache
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to