chiark / gitweb /
Do not always pointlessly fetch the .dsc twice. (That code was erroneously duplicate...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Aug 2013 22:08:06 +0000 (23:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Aug 2013 22:08:06 +0000 (23:08 +0100)
debian/changelog
dgit

index cb80d511e8f7db5f68d785f11d22df12ad7c1bb6..be670ab293e56238cf1663a3abefa8a63557630d 100644 (file)
@@ -2,6 +2,8 @@ dgit (0.13) unstable; urgency=low
 
   * Reuse already-downloaded .orig files after checking their hashes.
     Closes: #720526.  (This introduces a dependency on the Digest::SHA.)
+  * Do not always pointlessly fetch the .dsc twice.  (That code was
+    erroneously duplicated during editing, apparently.)
   * Remove DGET_UNPACK from the environment in case the user has set it.
   * Remove scary warning from Description.
 
diff --git a/dgit b/dgit
index 4550a86d897a8bb2e208e62b7630f2838f8a7401..9d1570c7a9f86fdfba869973e12cc08487cb8afb 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -443,8 +443,6 @@ sub get_archive_dsc () {
        $dscurl = access_cfg('mirror').$subpath;
        $dscdata = url_get($dscurl);
        next unless defined $dscdata;
-       $dscurl = access_cfg('mirror').$subpath;
-       $dscdata = url_get($dscurl);
        my $dscfh = new IO::File \$dscdata, '<' or die $!;
        print DEBUG Dumper($dscdata) if $debug>1;
        $dsc = parsecontrolfh($dscfh,$dscurl, allow_pgp=>1);