summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-05 22:39:59 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-05 22:39:59 +0000
commit679e5f802483ab2eb0fb55c35fb783f27e4153fb (patch)
treefd7283efb2a3685eb43cce59102a7cb77578675f
parent32967feb2a1d7f6ef4832a6714b08b6846c74df8 (diff)
downloadportage-679e5f802483ab2eb0fb55c35fb783f27e4153fb.tar.gz
portage-679e5f802483ab2eb0fb55c35fb783f27e4153fb.tar.bz2
portage-679e5f802483ab2eb0fb55c35fb783f27e4153fb.zip
For bug #160299, make sure that emerge sees a somewhat valid COUNTER even when the counter is missing.
svn path=/main/trunk/; revision=5465
-rwxr-xr-xbin/emerge1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index bb32835d1..3132b814c 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -744,6 +744,7 @@ class FakeVartree(portage.vartree):
mycounter = long(metadata["COUNTER"])
except ValueError:
mycounter = 0
+ metadata["COUNTER"] = str(mycounter)
other_counter = slot_counters.get(myslot_atom, None)
if other_counter is not None:
if other_counter > mycounter: