projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb0f762
)
For bug #178293, don't write digest-* files unnecessarily when SRC_URI is empty.
author
Zac Medico
<zmedico@gentoo.org>
Sun, 13 May 2007 21:33:43 +0000
(21:33 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 13 May 2007 21:33:43 +0000
(21:33 -0000)
svn path=/main/trunk/; revision=6535
pym/portage/manifest.py
patch
|
blob
|
history
diff --git
a/pym/portage/manifest.py
b/pym/portage/manifest.py
index 3405d7926d63ce19c97d4ccbed0a4556771516fc..cd03dc293d18218316bef6a371b7113edaeaa8f9 100644
(file)
--- 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 \