treewalk: fix inverted counter init logic
authorZac Medico <zmedico@gentoo.org>
Thu, 12 May 2011 05:35:40 +0000 (22:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 May 2011 05:35:40 +0000 (22:35 -0700)
pym/portage/dbapi/vartree.py

index 41a932991a1077fbc954f0c5cb06bb5f7e043107..989e96942d8b94d0d2e36f5a12bab52417958e4c 100644 (file)
@@ -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'),