summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-05-11 22:35:40 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-11 22:35:40 -0700
commitf8008b86ae0f6b324c74cf8cbc999f2bca881e92 (patch)
treef96e255cc1f8eeae0a70db56a9acb3dd30e7b9da
parent15ec54ba9615feadbc2b6bb1d32df16a826c6159 (diff)
downloadportage-f8008b86ae0f6b324c74cf8cbc999f2bca881e92.tar.gz
portage-f8008b86ae0f6b324c74cf8cbc999f2bca881e92.tar.bz2
portage-f8008b86ae0f6b324c74cf8cbc999f2bca881e92.zip
treewalk: fix inverted counter init logic
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 41a932991..989e96942 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -3277,7 +3277,7 @@ class dblink(object):
self.copyfile(inforoot+"/"+x)
# write local package counter for recording
- if counter is not None:
+ if counter is None:
counter = self.vartree.dbapi.counter_tick(mycpv=self.mycpv)
codecs.open(_unicode_encode(os.path.join(self.dbtmpdir, 'COUNTER'),
encoding=_encodings['fs'], errors='strict'),