[pyevolve] 70/81: svn-orig-source.sh helper was broken for relative paths

Christian Kastner chrisk-guest at moszumanska.debian.org
Sun Aug 17 21:12:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch master
in repository pyevolve.

commit 3da6c202aa83b90d92edb8e3282c8915baad70a9
Author: Christian Kastner <debian at kvr.at>
Date:   Tue Mar 4 11:50:14 2014 +0100

    svn-orig-source.sh helper was broken for relative paths
---
 debian/svn-orig-source.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/svn-orig-source.sh b/debian/svn-orig-source.sh
index 1bf0e43..7650170 100755
--- a/debian/svn-orig-source.sh
+++ b/debian/svn-orig-source.sh
@@ -8,7 +8,13 @@ set -e
 #   SVNREV      svn revision 
 
 workdir=`pwd`
-cleanfile=`dirname $0`/dfsg.remove
+# cleanfile must be an absolute path
+if [ "`expr substr $0 1 1`" = "/" ]
+then
+	cleanfile=`dirname $0`/dfsg.remove
+else
+	cleanfile=$workdir/`dirname $0`/dfsg.remove
+fi
 
 if ! which svn >/dev/null
 then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyevolve.git



More information about the debian-science-commits mailing list