summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-13 21:33:43 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-13 21:33:43 +0000
commit210238090453a0ff955693cf72b8806809c8e281 (patch)
tree73ba8f8d57b8a93834577a05cbaba48abf30526c
parentcb0f7621cfae9564829b5ae25216bcf2c9697bf5 (diff)
downloadportage-210238090453a0ff955693cf72b8806809c8e281.tar.gz
portage-210238090453a0ff955693cf72b8806809c8e281.tar.bz2
portage-210238090453a0ff955693cf72b8806809c8e281.zip
For bug #178293, don't write digest-* files unnecessarily when SRC_URI is empty.
svn path=/main/trunk/; revision=6535
-rw-r--r--pym/portage/manifest.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py
index 3405d7926..cd03dc293 100644
--- a/pym/portage/manifest.py
+++ b/pym/portage/manifest.py
@@ -238,8 +238,11 @@ class Manifest(object):
f = open(dname, "r")
old_data = self._parseDigests(f)
f.close()
- if len(old_data) == 1 and "DIST" in old_data:
- new_data = self._getDigestData(distlist)
+ new_data = self._getDigestData(distlist)
+ if not old_data and not new_data:
+ # SRC_URI is empty
+ update_digest = False
+ elif len(old_data) == 1 and "DIST" in old_data:
if "DIST" in new_data:
for myfile in new_data["DIST"]:
for hashname in \