tags 678845 patch
thanks

[Neil Williams]
> $ svn-inject -o pycparser_2.07+dfsg-1.dsc \
> file:///home/neil/code/debian/svn-buildpackage/test/svn/upstream/
> 
> ... which fails.
> 
> So this is only related to the -o option.

>From your log:

 cd /tmp/tmp.e9DyJwzOqX/unpdir/pycparser-2.07+dfsg ; tar  -c debian/copyright 
debian/patches/abort-on-test-failure deb
ian/rules debian/patches/series debian/compat debian/source/ debian/control 
debian/python3-pycparser.docs debian/
debian/changelog debian/clean debian/source/format debian/watch 
debian/python-pycparser.examples debian/patches/
debian/python-pycparser.docs debian/python-pycparser.install 
debian/python3-pycparser.install
debian/python3-pycparser.examples 2>/dev/null | tar x  -C /tmp/tmp.VW1h6QWbAr
rm -rf /tmp/tmp.e9DyJwzOqX/unpdir/pycparser-2.07+dfsg
mv /tmp/tmp.VW1h6QWbAr /tmp/tmp.e9DyJwzOqX/unpdir/pycparser-2.07+dfsg
svn co 
file:///home/neil/code/debian/svn-buildpackage/test/svn/upstream/pycparser/trunk
 /tmp/tmp.e9DyJwzOqX/trunk

So as I thought, 'svn co' is run in a deleted cwd.  For reporting
purposes, it tries to get the absolute path of '.', which obviously
will not work there.

Arguably this failure mode is a new bug in Subversion 1.7, because in
the present case it shouldn't need to report anything relative to the
cwd, since it was given only absolute paths.  But a deleted cwd is a
strange corner case, and I seem to recall that in some Unix kernels it
is not even legal.  Plus, I'm told by upstream that this particular
error turns out to not be easy to avoid, as the distinction between
relative and absolute paths is far away from where the getcwd()
happens.

This ought to do the trick:

--- svn-inject
+++ svn-inject
@@ -626,6 +626,7 @@ sub del_unreferenced {
     # withecho("cp", "-a", "--parents", (keys %ourfiles), "../current2"); 
sucks, cannot ignore errors "properly"
     # this sucks too
     withecho("cd $dir ; tar $opt_tarquiet -c ".join(' ',keys %list)." 
2>/dev/null | tar x $opt_tarquiet -C $tmpdir");
+    chdir "/";
     withecho("rm", "-rf", $dir);
     withecho("mv", $tmpdir, $dir);
 }



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to