projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
556c2b1
)
Make empty digest-* files 0 bytes instead of 1 byte. Thanks to Sven Wegener for...
author
Zac Medico
<zmedico@gentoo.org>
Tue, 17 Oct 2006 21:32:43 +0000
(21:32 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 17 Oct 2006 21:32:43 +0000
(21:32 -0000)
svn path=/main/trunk/; revision=4743
pym/portage_manifest.py
patch
|
blob
|
history
diff --git
a/pym/portage_manifest.py
b/pym/portage_manifest.py
index aa6f0c015a34e6be11875eccb52cd14c7202015c..1266e33df435b7a6b0ee0e8ef342627f154663db 100644
(file)
--- a/
pym/portage_manifest.py
+++ b/
pym/portage_manifest.py
@@
-252,8
+252,12
@@
class Manifest(object):
else:
raise
if update_digest:
- write_atomic(dname,
- "\n".join(self._createDigestLines1(distlist, self.fhashdict))+"\n")
+ mylines = self._createDigestLines1(distlist, self.fhashdict)
+ if mylines:
+ mylines = "\n".join(mylines) + "\n"
+ else:
+ mylines = ""
+ write_atomic(dname, mylines)
rval.append(dname)
return rval