* pristine-tar sometimes got confused about tarballs that did not unpack
authorjoeyh <joeyh@19660600-52fe-0310-9875-adc0d7a7b53c>
Wed, 3 Oct 2007 03:13:58 +0000 (03:13 +0000)
committerjoeyh <joeyh@19660600-52fe-0310-9875-adc0d7a7b53c>
Wed, 3 Oct 2007 03:13:58 +0000 (03:13 +0000)
  all files into a subdir. (eg, sear-media)

debian/changelog
pristine-tar

index 4d5c24d..b2dfa1d 100644 (file)
@@ -1,3 +1,10 @@
+pristine-tar (0.3) UNRELEASED; urgency=low
+
+  * pristine-tar sometimes got confused about tarballs that did not unpack
+    all files into a subdir. (eg, sear-media)
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 02 Oct 2007 23:13:08 -0400
+
 pristine-tar (0.2) unstable; urgency=low
 
   * Added pristine-gz, thanks to paravoid for making this possible!
index 78ccb80..f9e6e20 100755 (executable)
@@ -125,9 +125,14 @@ sub gentarball {
                                $subdir=$1;
                        }
                }
+               else {
+                       debug("found file not in subdir: $file");
+                       $subdir="";
+                       last;
+               }
        }
 
-       if ($subdir) {
+       if (length $subdir) {
                debug("subdir is $subdir");
                doit("mkdir", "$tempdir/workdir");
                $subdir="/$subdir";