]> git.saurik.com Git - apt.git/blobdiff - methods/copy.cc
Only support Translation-* that are listed in the {In,}Release file
[apt.git] / methods / copy.cc
index f542a27c0b2b34b8ee03e64ef5d2b3c72351dd8c..a23c0316c4717568950cacf3aebee238c4fdde30 100644 (file)
@@ -67,6 +67,14 @@ bool CopyMethod::Fetch(FetchItem *Itm)
    Res.LastModified = Buf.st_mtime;
    Res.IMSHit = false;      
    URIStart(Res);
+
+   // when the files are identical, just compute the hashes
+   if(File == Itm->DestFile)
+   {
+      CalculateHashes(Res);
+      URIDone(Res);
+      return true;
+   }
    
    // just calc the hashes if the source and destination are identical
    if (File == Itm->DestFile)