diff options
author | David James <davidjames@chromium.org> | 2011-05-03 23:32:05 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-05-04 10:02:14 -0700 |
commit | e4297ca1075342ec89e089802cd25ae0817f3d5b (patch) | |
tree | d71364c0c52c6b1a524fbac45c279b6cb682d86e /pym/_emerge/help.py | |
parent | fbd402cd32ab8dad37ac28cd63f8700e8f811a3d (diff) | |
download | portage-e4297ca1075342ec89e089802cd25ae0817f3d5b.tar.gz portage-e4297ca1075342ec89e089802cd25ae0817f3d5b.tar.bz2 portage-e4297ca1075342ec89e089802cd25ae0817f3d5b.zip |
emerge: replace --rebuild with finer grained opts
Replace --rebuild option with --rebuild-if-* options.
--rebuild-if-new-rev [ y | n ]
Rebuild packages when dependencies that are used at both build-time and
run-time are built, if the dependency is not already installed with the
same version and revision.
--rebuild-if-new-ver [ y | n ]
Rebuild packages when dependencies that are used at both build-time and
run-time are built, if the dependency is not already installed with the
same version. Revision numbers are ignored.
--rebuild-if-unbuilt [ y | n ]
Rebuild packages when dependencies that are used at both build-time and
run-time are built.
Change-Id: Ia50c1702bfe1b98a8d1891740e7bbb045921a905
Review URL: http://gerrit.chromium.org/gerrit/280
Diffstat (limited to 'pym/_emerge/help.py')
-rw-r--r-- | pym/_emerge/help.py | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index 35008c4ba..de50b7517 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -629,10 +629,28 @@ def help(myopts, havecolor=1): for line in wrap(desc, desc_width): print(desc_indent + line) print() - print(" " + green("--rebuild") + " [ %s | %s ]" % \ + print(" " + green("--rebuild-if-new-rev") + " [ %s | %s ]" % \ (turquoise("y"), turquoise("n"))) - desc = "Rebuild packages when dependencies that are used " + \ - "at both build-time and run-time are upgraded." + desc = "Rebuild packages when dependencies that are " + \ + "used at both build-time and run-time are built, " + \ + "if the dependency is not already installed with the " + \ + "same version and revision." + for line in wrap(desc, desc_width): + print(desc_indent + line) + print() + print(" " + green("--rebuild-if-new-ver") + " [ %s | %s ]" % \ + (turquoise("y"), turquoise("n"))) + desc = "Rebuild packages when dependencies that are " + \ + "used at both build-time and run-time are built, " + \ + "if the dependency is not already installed with the " + \ + "same version. Revision numbers are ignored." + for line in wrap(desc, desc_width): + print(desc_indent + line) + print() + print(" " + green("--rebuild-if-unbuilt") + " [ %s | %s ]" % \ + (turquoise("y"), turquoise("n"))) + desc = "Rebuild packages when dependencies that are " + \ + "used at both build-time and run-time are built." for line in wrap(desc, desc_width): print(desc_indent + line) print() |