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:36:13 +0000 (22:36 -0700)
pym/portage/dbapi/vartree.py

index a54adc07839d0dcddbfc150d3dce85fb6e874d90..079743c90d89fd9279838b547a51b385d7e67c40 100644 (file)
@@ -3243,7 +3243,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'),