update to work with the verbose error messages
authorMarius Mauch <genone@gentoo.org>
Tue, 20 Dec 2005 01:37:09 +0000 (01:37 -0000)
committerMarius Mauch <genone@gentoo.org>
Tue, 20 Dec 2005 01:37:09 +0000 (01:37 -0000)
svn path=/main/trunk/; revision=2414

bin/mirror.py

index 75579f37d09a117702a7f7d7a5243e844353ed71..9e5d44b72c6f404f446fdb19dc466b6f3397d8e3 100755 (executable)
@@ -46,7 +46,7 @@ class fetcher(Thread):
                if os.path.exists(self.destpath) and self.md5sum:
                        ok,reason = portage_checksum.verify_all(self.destpath, md5sum)
                        if not ok:
-                               portage_util.writemsg("Failed verification:" + reason + "\n")
+                               portage_util.writemsg("Failed verification:"+reason[0]+" (got "+reason[1]+", expected "+reason[2]+"\n")
                                return 1
                return 0