aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Palao <david.palao@gmail.com>2022-05-31 17:52:56 +0200
committerMike Gilbert <floppym@gentoo.org>2022-06-07 19:47:56 -0400
commitf4fd289c7e3cbbd1a17a1510b1b126d314eea053 (patch)
treeb056096930dcae45b5a6a882dd6445d9037eee6a
parentimprovement(actions): using new MtimeDB's API to make it read only (diff)
downloadgentoo-portage-f4fd289c7e3cbbd1a17a1510b1b126d314eea053.tar.xz
gentoo-portage-f4fd289c7e3cbbd1a17a1510b1b126d314eea053.zip
improvement(mtimedb): using is_readonly instead "if not self.filename"
Signed-off-by: David Palao <david.palao@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--lib/portage/util/mtimedb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/portage/util/mtimedb.py b/lib/portage/util/mtimedb.py
index 9884746f3..497c01e05 100644
--- a/lib/portage/util/mtimedb.py
+++ b/lib/portage/util/mtimedb.py
@@ -124,7 +124,7 @@ class MtimeDB(dict):
self._clean_data = copy.deepcopy(d)
def commit(self):
- if not self.filename:
+ if self.is_readonly:
return
d = {}
d.update(self)