diff options
Diffstat (limited to 'methods')
-rw-r--r-- | methods/copy.cc | 8 | ||||
-rw-r--r-- | methods/gpgv.cc | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/methods/copy.cc b/methods/copy.cc index f542a27c0..a23c0316c 100644 --- a/methods/copy.cc +++ b/methods/copy.cc @@ -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) diff --git a/methods/gpgv.cc b/methods/gpgv.cc index 02fb8c356..7e8500c51 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -160,7 +160,7 @@ string GPGVMethod::VerifyGetSigners(const char *file, const char *outfile, waitpid(pid, &status, 0); if (Debug == true) { - std::clog << "apt-key exited\n"; + ioprintf(std::clog, "gpgv exited with status %i\n", WEXITSTATUS(status)); } if (WEXITSTATUS(status) == 0) |