diff options
author | Marius Mauch <genone@gentoo.org> | 2006-03-25 00:54:30 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2006-03-25 00:54:30 +0000 |
commit | dfb0b4faf5f80aae2b063180117ffec71532711e (patch) | |
tree | 95a23d13c859f010e8d4afc04af78c71943cb893 | |
parent | e4becfedbeb95e47d26cb9009fad6ee24e0c9439 (diff) | |
download | portage-dfb0b4faf5f80aae2b063180117ffec71532711e.tar.gz portage-dfb0b4faf5f80aae2b063180117ffec71532711e.tar.bz2 portage-dfb0b4faf5f80aae2b063180117ffec71532711e.zip |
only reuse distfile checksums if the file doesn't exist
svn path=/main/trunk/; revision=2998
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index 6b36bfd6a..be75e5812 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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 |