-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Beckmann wrote: > Package: svn-buildpackage > Version: 0.6.16 > Severity: normal > File: /usr/bin/svn-inject > Tags: patch > > Hi, > > the initial checkout (default mode: 1 - trunk only) does not work: > there is an attempt to copy the not existant directory $tempdir/trunk to > the checkout destination. This happened while importing a native package > (only .dsc + .tar.gz). >
This doesn't work either for layout 2. But the problem seems to be deeper than this pathc suggests. > The attached patch changes this to a regular checkout (no more copying). This is why this patch is not good. > ------------------------------------------------------------------------ > > --- /usr/bin/svn-inject 2006-12-26 16:09:37.000000000 +0100 > +++ /home/andreas/bin/svn-inject 2007-02-20 02:18:40.000000000 +0100 > @@ -333,10 +333,10 @@ > print "Storing copy of your repository tree in $basedir/$package.\n"; > withecho "svn", "checkout", "$opt_svnurl/$package", > "$basedir/$package", $opt_svnquiet; > } > - elsif ($opt_checkout==1) { > + elsif ($opt_checkout==1 && $opt_layout==1) { > $trunkdir = "$basedir/$package"; > - print "Storing trunk copy in $basedir/$package.\n"; > - withecho("cp", "-a", "$tempdir/trunk", $trunkdir); > + print "Storing copy of your repository trunk in $basedir/$package.\n"; > + withecho "svn", "checkout", "$opt_svnurl/$package/trunk", > "$basedir/$package", $opt_svnquiet; > } > } > - -- Regards, EddyP ============================================= "Imagination is more important than knowledge" A.Einstein -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF4arIY8Chqv3NRNoRAtOBAJ4iNp/PopOjlpTYogOUbRdBoGn4ZACfZ4Zh fOz+HkQRZ4OEUrekyWSUlyc= =67k9 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]