]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/acquire-item.cc:
authorMichael Vogt <egon@tas>
Thu, 7 Dec 2006 10:10:32 +0000 (11:10 +0100)
committerMichael Vogt <egon@tas>
Thu, 7 Dec 2006 10:10:32 +0000 (11:10 +0100)
  - merged the NMU pdiff fix and make the code a bit more readable

apt-pkg/acquire-item.cc

index a51b6f12dc37787253773b7d3128f041b9949819..6831abd545ce84da10e1efa67a53a29b8b913ea7 100644 (file)
@@ -270,15 +270,8 @@ bool pkgAcqDiffIndex::ParseDiffIndex(string IndexDiffFile)
         }
       }
 
-      // no information how to get the patches, bail out
-      if(!found) 
-      {
-        if(Debug)
-           std::clog << "Can't find a patch in the index file" << std::endl;
-        // Failed will queue a big package file
-        Failed("", NULL);
-      } 
-      else 
+      // we have something, queue the next diff
+      if(found) 
       {
         // queue the diffs
         new pkgAcqIndexDiffs(Owner, RealURI, Description, Desc.ShortDesc,
@@ -290,6 +283,11 @@ bool pkgAcqDiffIndex::ParseDiffIndex(string IndexDiffFile)
       }
    }
 
+   // Nothing found, report and return false
+   // Failing here is ok, if we return false later, the full
+   // IndexFile is queued
+   if(Debug)
+      std::clog << "Can't find a patch in the index file" << std::endl;
    return false;
 }