only reuse distfile checksums if the file doesn't exist
authorMarius Mauch <genone@gentoo.org>
Sat, 25 Mar 2006 00:54:30 +0000 (00:54 -0000)
committerMarius Mauch <genone@gentoo.org>
Sat, 25 Mar 2006 00:54:30 +0000 (00:54 -0000)
svn path=/main/trunk/; revision=2998

pym/portage.py

index 6b36bfd6a7ffde80e08c8e0aaaaabda8ccbd52f8..be75e58121d11ed47f6dbb4d39d42a44e11d36a1 100644 (file)
@@ -2053,7 +2053,7 @@ def digestgen(myarchives,mysettings,db=None,overwrite=1,manifestonly=0):
                mf.create(assumeDistfileHashes=True)
                try:
                        writemsg(">>> Adding digests for file %s\n" % f)
-                       mf.updateFileHashes(mytype, f, checkExisting=False, reuseExisting=True)
+                       mf.updateFileHashes(mytype, f, checkExisting=False, reuseExisting=not os.path.exists(os.path.join(mysettings["DISTDIR"], f)))
                except portage_exception.FileNotFound, e:
                        writemsg("!!! File %s doesn't exist, can't update Manifest\n" % str(e))
                        return 0