diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-14 19:21:45 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-14 19:21:45 -0700 |
commit | d1f3fdfb943a9021d454c12b3418e44e5275ad69 (patch) | |
tree | 718f0b6a5243f4b0021fa274181196df7ef3ec52 | |
parent | 19471c377fd85c32f35b496f8f5901df6746b533 (diff) | |
download | portage-d1f3fdfb943a9021d454c12b3418e44e5275ad69.tar.gz portage-d1f3fdfb943a9021d454c12b3418e44e5275ad69.tar.bz2 portage-d1f3fdfb943a9021d454c12b3418e44e5275ad69.zip |
Don't write empty (thin) Manifest files.
With thin manifest, there's no need to have a Manifest file if there
are no DIST entries.
-rw-r--r-- | pym/portage/manifest.py | 5 |
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: |