summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/help.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-19 22:33:57 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-19 22:33:57 +0000
commiteaa60cb097683a80eeabdb2140a7a88302e6c288 (patch)
tree15f558dacac1bc3900c7bc176cd24941489c5ab1 /pym/_emerge/help.py
parent7f3db57c5feb631f6ff45b40ec45f1721e144a1c (diff)
downloadportage-eaa60cb097683a80eeabdb2140a7a88302e6c288.tar.gz
portage-eaa60cb097683a80eeabdb2140a7a88302e6c288.tar.bz2
portage-eaa60cb097683a80eeabdb2140a7a88302e6c288.zip
Bug #196435 - Add some more references to quickpkg(1) since
sometimes people don't realize that it exists. svn path=/main/trunk/; revision=8185
Diffstat (limited to 'pym/_emerge/help.py')
-rw-r--r--pym/_emerge/help.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py
index 5bb93a1f4..4c7505da1 100644
--- a/pym/_emerge/help.py
+++ b/pym/_emerge/help.py
@@ -21,6 +21,11 @@ def shorthelp():
print bold("Actions:")+" [ "+green("--clean")+" | "+green("--depclean")+" | "+green("--prune")+" | "+green("--regen")+" | "+green("--search")+" | "+green("--unmerge")+" ]"
def help(myaction,myopts,havecolor=1):
+ # TODO: Implement a wrap() that accounts for console color escape codes.
+ from textwrap import wrap
+ desc_left_margin = 14
+ desc_indent = desc_left_margin * " "
+ desc_width = 80 - desc_left_margin - 5
if not myaction and ("--verbose" not in myopts):
shorthelp()
print
@@ -184,11 +189,16 @@ def help(myaction,myopts,havecolor=1):
print " time prior to the prompt will be interpreted as a choice!"
print
print " "+green("--buildpkg")+" ("+green("-b")+" short option)"
- print " Tell emerge to build binary packages for all ebuilds processed"
- print " (in addition to actually merging the packages. Useful for"
- print " maintainers or if you administrate multiple Gentoo Linux"
- print " systems (build once, emerge tbz2s everywhere) as well as disaster"
- print " recovery."
+ desc = "Tells emerge to build binary packages for all ebuilds processed in" + \
+ " addition to actually merging the packages. Useful for maintainers" + \
+ " or if you administrate multiple Gentoo Linux systems (build once," + \
+ " emerge tbz2s everywhere) as well as disaster recovery. The package" + \
+ " will be created in the" + \
+ " ${PKGDIR}/All directory. An alternative for already-merged" + \
+ " packages is to use quickpkg(1) which creates a tbz2 from the" + \
+ " live filesystem."
+ for line in wrap(desc, desc_width):
+ print desc_indent + line
print
print " "+green("--buildpkgonly")+" ("+green("-B")+" short option)"
print " Creates a binary package, but does not merge it to the"