summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 775fc4385..551b4441b 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6732,6 +6732,8 @@ class MtimeDB(dict):
self._clean_data = copy.deepcopy(d)
def commit(self):
+ if not self.filename:
+ return
d = {}
d.update(self)
# Only commit if the internal state has changed.