From d1f3fdfb943a9021d454c12b3418e44e5275ad69 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 14 Sep 2011 19:21:45 -0700 Subject: 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. --- pym/portage/manifest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3-1-g7c22