summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/manifest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py
index 3f0aa9327..32cc2c025 100644
--- a/pym/portage/manifest.py
+++ b/pym/portage/manifest.py
@@ -257,7 +257,10 @@ class Manifest(object):
break
except (IOError, OSError) as e:
if e.errno == errno.ENOENT:
- pass
+ if not myentries:
+ # With thin manifest, there's no need to have
+ # a Manifest file if there are no DIST entries.
+ update_manifest = False
else:
raise
if update_manifest: