From adc1a00a0421ab71ffde20d1eed9abd7cdbb9430 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Fri, 3 Feb 2006 16:52:21 +0000 Subject: Thanks to Benno Schulenberg for the spelling/grammar fixes, bug #80754 svn path=/main/trunk/; revision=2641 --- pym/emergehelp.py | 49 ++++++++++++++++++++++++++++++++++++------------- pym/portage.py | 12 ++++++------ 2 files changed, 42 insertions(+), 19 deletions(-) (limited to 'pym') diff --git a/pym/emergehelp.py b/pym/emergehelp.py index 9a80de50d..9956a9469 100644 --- a/pym/emergehelp.py +++ b/pym/emergehelp.py @@ -14,7 +14,7 @@ def shorthelp(): print " "+turquoise("emerge")+" [ "+green("options")+" ] [ "+green("action")+" ] < "+turquoise("system")+" | "+turquoise("world")+" >" print " "+turquoise("emerge")+" < "+turquoise("--sync")+" | "+turquoise("--metadata")+" | "+turquoise("--info")+" >" print " "+turquoise("emerge")+" "+turquoise("--resume")+" [ "+green("--pretend")+" | "+green("--ask")+" | "+green("--skipfirst")+" ]" - print " "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("system")+" | "+green("config")+" | "+green("sync")+" ] " + print " "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("system")+" | "+green("world")+" | "+green("config")+" | "+green("sync")+" ] " print bold("Options:")+" "+green("-")+"["+green("abcCdDefhikKlnNoOpPsSuUvV")+"] ["+green("--oneshot")+"] ["+green("--newuse")+"] ["+green("--noconfmem")+"]" print " ["+green("--columns")+"] ["+green("--nospinner")+"]" print bold("Actions:")+" [ "+green("--clean")+" | "+green("--depclean")+" | "+green("--prune")+" | "+green("--regen")+" | "+green("--search")+" | "+green("--unmerge")+" ]" @@ -323,18 +323,41 @@ def help(myaction,myopts,havecolor=1): print print bold("Usage: ")+turquoise("emerge")+" [ "+green("options")+" ] "+turquoise("system") print - print " \"emerge system\" is the Portage system update command. When run, it" - print " will scan the etc/make.profile/packages file and determine what" - print " packages need to be installed so that your system meets the minimum" - print " requirements of your current system profile. Note that this doesn't" - print " necessarily bring your system up-to-date at all; instead, it just" - print " ensures that you have no missing parts. For example, if your system" - print " profile specifies that you should have sys-apps/iptables installed" - print " and you don't, then \"emerge system\" will install it (the most" - print " recent version that matches the profile spec) for you. It's always a" - print " good idea to do an \"emerge --pretend system\" before an \"emerge" - print " system\", just so you know what emerge is planning to do." - print + print " \"emerge system\" is a special set defined by your profile." + print " Portage will scan /etc/make.profile/packages and determine what" + print " packages end up in the \"system\" set. The goal of the \"system\"" + print " set is to provide a minimum set of packages for a system to operate." + print " If you wish to check that your system has all it's core components," + print " an \"emerge -p system\" will tell you if you are missing anything." + print " The \"system\" set is also useful for updating core components. One" + print " can do \"emerge --update --deep system\" to update core components" + print " and their dependencies. Also useful is the --emptytree option which" + print " forces a rebuild of the packages in the \"system\" set. In all cases" + print " when the \"system\" set is being used, --ask or --pretend are also" + print " highly recommended due to the fact that the \"system\" set may pull" + print " in large number of packages." + print " Note: The \"system\" set is a subset of the \"world\" set. To update" + print " the packages that you have installed, use the \"world\" set." + print + elif myaction=="world": + print + print bold("Usage: ")+turquoise("emerge")+" [ "+green("options")+" ] "+turquoise("world") + print + print " \"world\" is a special set that you can give to emerge on the command" + print " line. It will read the file at /var/lib/portage/world and will process" + print " those packages. The \"world\" set also includes all the packages in" + print " the \"system\" set. See the help on the \"system\" set for what is" + print " contained in it. Using the \"world\" set, users can keep their entire" + print " system up to date by doing an \"emerge --update --deep world\". This" + print " command tells portage to update all packages in world, as well as their" + print " deep dependencies. Another useful command is \"emerge --newuse world\"" + print " which will emerge any packages that have changed USE flags. In either" + print " case, using --ask or --pretend with the \"world\" set is highly" + print " recommended as the \"world\" set may pull in a large number of packages." + print " Note: The world set is only a subset of all installed packages. Using" + print " the --deep switch with the \"world\" set is important to updating all" + print " package dependencies." + print elif myaction=="config": outstuff=green("Config file management support (preliminary)")+""" diff --git a/pym/portage.py b/pym/portage.py index 49fc4413c..c027bd236 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2137,7 +2137,7 @@ def digestgen(myarchives,mysettings,overwrite=1,manifestonly=0): if (not overwrite) and os.path.exists(digestfn): return 1 - print green(">>> Generating digest file...") + print green(">>> Generating the digest file...") # Track the old digest so we can assume checksums without requiring # all files to be downloaded. 'Assuming' @@ -2173,7 +2173,7 @@ def digestgen(myarchives,mysettings,overwrite=1,manifestonly=0): except Exception,e: print e - print green(">>> Generating manifest file...") + print green(">>> Generating the manifest file...") mypfiles=listdir(pbasedir,recursive=1,filesonly=1,ignorecvs=1,EmptyOnError=1) mypfiles=cvstree.apply_cvsignore_filter(mypfiles) mypfiles.sort() @@ -6075,7 +6075,7 @@ class dblink: self.dbdir = self.dbpkgdir self.unmerge(oldcontents,trimworld=0) self.dbdir = self.dbtmpdir - writemsg_stdout(">>> original instance of package unmerged safely.\n") + writemsg_stdout(">>> Original instance of package unmerged safely.\n") # We hold both directory locks. self.dbdir = self.dbpkgdir @@ -6512,7 +6512,7 @@ def pkgmerge(mytbz2,myroot,mysettings): shutil.rmtree(tmploc+"/"+mypkg,1) os.makedirs(pkgloc) os.makedirs(infloc) - writemsg_stdout(">>> extracting info\n") + writemsg_stdout(">>> Extracting info\n") xptbz2.unpackinfo(infloc) # run pkg_setup early, so we can bail out early # (before extracting binaries) if there's a problem @@ -6521,10 +6521,10 @@ def pkgmerge(mytbz2,myroot,mysettings): mysettings.configdict["pkg"]["CATEGORY"] = mycat; a=doebuild(myebuild,"setup",myroot,mysettings,tree="bintree") - writemsg_stdout(">>> extracting %s\n" % mypkg) + writemsg_stdout(">>> Extracting %s\n" % mypkg) notok=spawn("bzip2 -dqc -- '"+mytbz2+"' | tar xpf -",mysettings,free=1) if notok: - print "!!! Error extracting",mytbz2 + print "!!! Error Extracting",mytbz2 cleanup_pkgmerge(mypkg,origdir) return None -- cgit v1.2.3-1-g7c22