Rename the global updates do_upgrade() function to parse_updates().
authorZac Medico <zmedico@gentoo.org>
Sat, 4 Mar 2006 06:35:16 +0000 (06:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Mar 2006 06:35:16 +0000 (06:35 -0000)
svn path=/main/trunk/; revision=2810

pym/portage.py

index 66a69565597ca27f072c131e35cc72d5aecda4ce..8a33d155f1195e25ae127d074fb2100e4ea7bc3b 100644 (file)
@@ -6734,7 +6734,7 @@ for x in mtimedb.keys():
 #,"porttree":portagetree(root,virts),"bintree":binarytree(root,virts)}
 features=settings["FEATURES"].split()
 
-def do_upgrade(mykey, mycontent):
+def parse_updates(mycontent):
        """Valid updates are returned as a list of split update commands."""
        myupd = []
        errors = []
@@ -6875,7 +6875,7 @@ def global_updates():
                        writemsg(green("Performing Global Updates: ")+bold(mykey)+"\n")
                        writemsg("(Could take a couple of minutes if you have a lot of binary packages.)\n")
                        writemsg("  "+bold(".")+"='update pass'  "+bold("*")+"='binary update'  "+bold("@")+"='/var/db move'\n"+"  "+bold("s")+"='/var/db SLOT move' "+bold("S")+"='binary SLOT move' "+bold("p")+"='update /etc/portage/package.*'\n")
-                       valid_updates, errors = do_upgrade(mykey, mycontent)
+                       valid_updates, errors = parse_updates(mycontent)
                        myupd.extend(valid_updates)
                        print len(valid_updates) * "."
                        if len(errors) == 0: