diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-13 21:35:38 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-13 21:35:38 +0000 |
commit | 0b3613205414aad1265dcafbe77a45eaef896c4c (patch) | |
tree | 61bbbeb2cffa863f6b3c1a50b3068e3ba2979e45 | |
parent | eb31e019adaf87f593090a302f99b0a16d05c282 (diff) | |
download | portage-0b3613205414aad1265dcafbe77a45eaef896c4c.tar.gz portage-0b3613205414aad1265dcafbe77a45eaef896c4c.tar.bz2 portage-0b3613205414aad1265dcafbe77a45eaef896c4c.zip |
For bug #178293, don't write digest-* files unnecessarily when SRC_URI is empty. (trunk r6534:6535)
svn path=/main/branches/2.1.2/; revision=6536
-rw-r--r-- | pym/portage_manifest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py index aed465d46..761937b39 100644 --- a/pym/portage_manifest.py +++ b/pym/portage_manifest.py @@ -235,8 +235,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 \ |