]> 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 40f8f85ecda2bb9c1ad9c4db6ffaedfb24f9801b..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)
@@ -116,5 +124,6 @@ int main()
    setlocale(LC_ALL, "");
 
    CopyMethod Mth;
+
    return Mth.Run();
 }