For bug #160299, make sure that emerge sees a somewhat valid COUNTER even when the...
authorZac Medico <zmedico@gentoo.org>
Fri, 5 Jan 2007 22:39:59 +0000 (22:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 5 Jan 2007 22:39:59 +0000 (22:39 -0000)
svn path=/main/trunk/; revision=5465

bin/emerge

index bb32835d1cd828d6490847f38301b0a26c542d5e..3132b814c7b0251438afe238f3f9885dc1f66b12 100755 (executable)
@@ -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: