Fix core-cpan-diff for dists that extract weirdly
authorFlorian Ragwitz <rafl@debian.org>
Sun, 5 Sep 2010 00:08:52 +0000 (02:08 +0200)
committerFlorian Ragwitz <rafl@debian.org>
Sun, 5 Sep 2010 00:08:52 +0000 (02:08 +0200)
The recent "Foo-Bar-1.23-withoutworldwriteables.tar.gz" dists are an example of
that. They'll extract to Foo-Bar-1.23/.

Caching of the untarred dists probably doesn't work for those dists, but at
least it works at all.

Porting/core-cpan-diff

index 7594618..7c8a312 100644 (file)
@@ -631,6 +631,8 @@ sub get_distribution {
           or die
           "ERROR: failed to extract distribution '$download_file to temp. dir: "
           . $ae->error() . "\n";
+
+        $path = $ae->extract_path;
     }
 
     die "ERROR: Extracted tarball does not appear as $path\n" unless -d $path;