In the absence of expertise: layman's fix for the following error:
authorFabian Groffen <grobian@gentoo.org>
Mon, 14 Apr 2008 18:04:12 +0000 (18:04 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 14 Apr 2008 18:04:12 +0000 (18:04 -0000)
commit7a86df8a96f5fa82e15ab90a335f11577093fb88
treec0070a60c831abea898de3706fe9b28d8baea7a6
parentbfc1d537438301bde889fd9801a1dbcb9545c37f
In the absence of expertise: layman's fix for the following error:

  File "pym/portage/dbapi/vartree.py", line 1189, in unmerge
    plib_registry.unregister(self.mycpv, self.settings["SLOT"], self.settings["COUNTER"])
  File "pym/portage/dbapi/vartree.py", line 100, in unregister
    self.register(cpv, slot, counter, [])
  File "pym/portage/dbapi/vartree.py", line 86, in register
    and self._data[cps][0] == cpv and int(self._data[cps][1]) == int(counter):
ValueError: invalid literal for int() with base 10: ''

COUNTER appears to be empty quite often, in this case it is often and
called by some preserved-libs stuff.  I just replace counter with an
explicit 0 in case counter == "".

svn path=/main/branches/prefix/; revision=9894
pym/portage/dbapi/vartree.py