Package: svn-buildpackage
Version: 0.8.1
Severity: normal
Tags: patch

svn-buildpackage's mergeWithUpstream fails to extract upstream
tarballs, if there're more than two of them: when extracting the
third tarball it tries to use a temporary directory, that already
was removed after it had finished dealing with the second tarball.

Please look at my upx-nrv 3.05 package, just being uploaded, for an
example of such a multi-tarball package.


--- svn-buildpackage.old        2010-05-31 00:09:00.000000000 +0200
+++ svn-buildpackage    2010-06-12 20:38:48.000000000 +0200
@@ -613,6 +613,7 @@
          # The files are stored in the archive under a top directory, we
          # presume
          withecho "mv", (<$ba/tmp-$mod/*>), $bdir;
+        rmdir "$ba/tmp-$mod";
       }
       else {
          # Otherwise, we put them into a new directory
@@ -620,6 +621,7 @@
       }
       foreach my $component (keys %otherOrigFiles) {
          withecho "rm", "-rf", "$bdir/$component";
+         mkdir "$ba/tmp-$mod";
          withecho "tar", "--no-same-owner", "--no-same-permissions", 
"--extract", "--file", $otherOrigFiles{$component}, "--directory", 
"$ba/tmp-$mod";
          my @entries = (<$ba/tmp-$mod/*>);
          if (@entries == 1) {


Regards,
robert

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (200, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/pdksh

Versions of packages svn-buildpackage depends on:
ii  devscripts                  2.10.64      scripts to make the life of a Debi
ii  file                        5.04-2       Determines file type using "magic"
ii  libcapture-tiny-perl        0.07-1       module to capture STDOUT and STDER
ii  libfile-libmagic-perl       0.96-1       Perl interface to libmagic for det
ii  liblocale-gettext-perl      1.05-6       Using libc functions for internati
ii  libsvn-perl                 1.6.11dfsg-1 Perl bindings for Subversion
ii  liburi-perl                 1.54-1       module to manipulate and access UR
ii  perl                        5.10.1-13    Larry Wall's Practical Extraction 
ii  subversion                  1.6.11dfsg-1 Advanced version control system
ii  unp                         2.0~pre3     unpack (almost) everything with on
ii  wget                        1.12-2       retrieves files from the web

Versions of packages svn-buildpackage recommends:
ii  debhelper                     7.4.20     helper programs for debian/rules

svn-buildpackage suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/svn-buildpackage (from svn-buildpackage package)



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to