From 3266963ed0bff7c1d65d9636786b8f03f828c9c9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 7 Aug 2008 09:08:31 +0000 Subject: [PATCH] In order to conserve some space, make _setitem() skip writing keys for which the value is empty. svn path=/main/trunk/; revision=11340 --- pym/portage/cache/flat_hash.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/cache/flat_hash.py b/pym/portage/cache/flat_hash.py index 80b23fe4d..ed1eebd12 100644 --- a/pym/portage/cache/flat_hash.py +++ b/pym/portage/cache/flat_hash.py @@ -72,6 +72,8 @@ class database(fs_template.FsBased): raise cache_errors.CacheCorruption(cpv, e) for k, v in values.iteritems(): + if not v: + continue if k != "_mtime_" and (k == "_eclasses_" or k in self._known_keys): myf.write("%s=%s\n" % (k, v)) -- 2.26.2