Fix 2 typos from revision 2735.
authorZac Medico <zmedico@gentoo.org>
Sun, 19 Feb 2006 00:01:38 +0000 (00:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 19 Feb 2006 00:01:38 +0000 (00:01 -0000)
svn path=/main/trunk/; revision=2736

pym/portage.py

index 0a0eadb744850c58bca0d7e21e3a08e293bff0eb..356e1fc1809ef8f6a03b96b8db19df86acebd21a 100644 (file)
@@ -6793,7 +6793,7 @@ def do_upgrade(mykey):
                mysplit = myline.split()
                if len(mysplit) == 0:
                        continue
-               if mysplit[0] is not in ("move", "slotmove"):
+               if mysplit[0] not in ("move", "slotmove"):
                        writemsg("portage: Update type \""+mysplit[0]+"\" not recognized.\n")
                        processed=0
                        continue
@@ -6813,7 +6813,7 @@ def do_upgrade(mykey):
                                writemsg("portage: Update command \""+myline+"\" invalid; skipping.\n")
                                processed=0
                                continue
-                       pkg, origslot, newslot = mylist[1], mylist[2], mylist[3]
+                       pkg, origslot, newslot = mysplit[1], mysplit[2], mysplit[3]
                        if not isvalidatom(pkg):
                                writemsg("\nERROR: Malformed update entry '%s'\n" % myline)
                                processed=0