summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_manifest.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py
index aa6f0c015..1266e33df 100644
--- 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