From: Zac Medico Date: Thu, 15 Sep 2011 02:21:45 +0000 (-0700) Subject: Don't write empty (thin) Manifest files. X-Git-Tag: v2.2.0_alpha58~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d1f3fdfb943a9021d454c12b3418e44e5275ad69;p=portage.git 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. --- 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: