summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/emerge.14
-rw-r--r--pym/_emerge/depgraph.py16
-rw-r--r--pym/_emerge/help.py4
-rw-r--r--pym/_emerge/main.py16
-rw-r--r--pym/portage/tests/resolver/test_rebuild.py2
5 files changed, 21 insertions, 21 deletions
diff --git a/man/emerge.1 b/man/emerge.1
index 3dcd20cf5..f7b604327 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -485,11 +485,11 @@ may have changed.
Disables the spinner for the session. The spinner is active when the
terminal device is determined to be a TTY. This flag disables it regardless.
.TP
-.BR "\-\-nousepkg\-atoms " ATOMS
+.BR "\-\-usepkg\-exclude " ATOMS
A space separated list of package names or slot atoms. Emerge will ignore
matching binary packages.
.TP
-.BR "\-\-norebuild\-atoms " ATOMS
+.BR "\-\-rebuild\-exclude " ATOMS
A space separated list of package names or slot atoms. Emerge will not rebuild
matching packages due to \fB\-\-rebuild\fR.
.TP
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 80d701cd6..5183b27f6 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -124,12 +124,12 @@ class _frozen_depgraph_config(object):
self.excluded_pkgs = _wildcard_set(atoms)
atoms = ' '.join(myopts.get("--reinstall-atoms", [])).split()
self.reinstall_atoms = _wildcard_set(atoms)
- atoms = ' '.join(myopts.get("--nousepkg-atoms", [])).split()
- self.nousepkg_atoms = _wildcard_set(atoms)
+ atoms = ' '.join(myopts.get("--usepkg-exclude", [])).split()
+ self.usepkg_exclude = _wildcard_set(atoms)
atoms = ' '.join(myopts.get("--useoldpkg-atoms", [])).split()
self.useoldpkg_atoms = _wildcard_set(atoms)
- atoms = ' '.join(myopts.get("--norebuild-atoms", [])).split()
- self.norebuild_atoms = _wildcard_set(atoms)
+ atoms = ' '.join(myopts.get("--rebuild-exclude", [])).split()
+ self.rebuild_exclude = _wildcard_set(atoms)
self.rebuild = "--rebuild" in myopts
@@ -155,11 +155,11 @@ class _rebuild_config(object):
def add(self, dep_pkg, dep):
parent = dep.collapsed_parent
priority = dep.collapsed_priority
- norebuild_atoms = self._frozen_config.norebuild_atoms
+ rebuild_exclude = self._frozen_config.rebuild_exclude
if (self._frozen_config.rebuild and isinstance(parent, Package) and
parent.built and (priority.buildtime or priority.runtime) and
isinstance(dep_pkg, Package) and
- not norebuild_atoms.findAtomForPackage(parent)):
+ not rebuild_exclude.findAtomForPackage(parent)):
self._graph.add(dep_pkg, parent, priority)
def _trigger_rebuild(self, parent, build_deps, runtime_deps):
@@ -3406,7 +3406,7 @@ class depgraph(object):
use_ebuild_visibility = self._frozen_config.myopts.get(
'--use-ebuild-visibility', 'n') != 'n'
reinstall_atoms = self._frozen_config.reinstall_atoms
- nousepkg_atoms = self._frozen_config.nousepkg_atoms
+ usepkg_exclude = self._frozen_config.usepkg_exclude
useoldpkg_atoms = self._frozen_config.useoldpkg_atoms
matched_oldpkg = []
# Behavior of the "selective" parameter depends on
@@ -3454,7 +3454,7 @@ class depgraph(object):
modified_use=self._pkg_use_enabled(pkg)):
continue
- if built and not installed and nousepkg_atoms.findAtomForPackage(pkg, \
+ if built and not installed and usepkg_exclude.findAtomForPackage(pkg, \
modified_use=self._pkg_use_enabled(pkg)):
break
diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py
index bf2437dce..85026ac82 100644
--- a/pym/_emerge/help.py
+++ b/pym/_emerge/help.py
@@ -559,13 +559,13 @@ def help(myopts, havecolor=1):
print(" "+green("--nospinner"))
print(" Disables the spinner regardless of terminal type.")
print()
- print(" " + green("--nousepkg-atoms") + " " + turquoise("ATOMS"))
+ print(" " + green("--usepkg-exclude") + " " + turquoise("ATOMS"))
desc = "A space separated list of package names or slot atoms." + \
" Emerge will ignore matching binary packages."
for line in wrap(desc, desc_width):
print(desc_indent + line)
print()
- print(" " + green("--norebuild-atoms") + " " + turquoise("ATOMS"))
+ print(" " + green("--rebuild-exclude") + " " + turquoise("ATOMS"))
desc = "A space separated list of package names or slot atoms." + \
" Emerge will not rebuild matching packages due to --rebuild."
for line in wrap(desc, desc_width):
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 434fd5a57..552ea2082 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -735,14 +735,14 @@ def parse_opts(tmpcmdline, silent=False):
"choices" : true_y_or_n
},
- "--nousepkg-atoms": {
+ "--usepkg-exclude": {
"help" :"A space separated list of package names or slot atoms. " + \
"Emerge will ignore matching binary packages. ",
"action" : "append",
},
- "--norebuild-atoms": {
+ "--rebuild-exclude": {
"help" :"A space separated list of package names or slot atoms. " + \
"Emerge will not rebuild these packages due to the " + \
"--rebuild flag. ",
@@ -926,16 +926,16 @@ def parse_opts(tmpcmdline, silent=False):
parser.error("Invalid Atom(s) in --reinstall-atoms parameter: '%s' (only package names and slot atoms (with wildcards) allowed)\n" % \
(",".join(bad_atoms),))
- if myoptions.norebuild_atoms:
- bad_atoms = _find_bad_atoms(myoptions.norebuild_atoms)
+ if myoptions.rebuild_exclude:
+ bad_atoms = _find_bad_atoms(myoptions.rebuild_exclude)
if bad_atoms and not silent:
- parser.error("Invalid Atom(s) in --norebuild-atoms parameter: '%s' (only package names and slot atoms (with wildcards) allowed)\n" % \
+ parser.error("Invalid Atom(s) in --rebuild-exclude parameter: '%s' (only package names and slot atoms (with wildcards) allowed)\n" % \
(",".join(bad_atoms),))
- if myoptions.nousepkg_atoms:
- bad_atoms = _find_bad_atoms(myoptions.nousepkg_atoms)
+ if myoptions.usepkg_exclude:
+ bad_atoms = _find_bad_atoms(myoptions.usepkg_exclude)
if bad_atoms and not silent:
- parser.error("Invalid Atom(s) in --nousepkg-atoms parameter: '%s' (only package names and slot atoms (with wildcards) allowed)\n" % \
+ parser.error("Invalid Atom(s) in --usepkg-exclude parameter: '%s' (only package names and slot atoms (with wildcards) allowed)\n" % \
(",".join(bad_atoms),))
if myoptions.useoldpkg_atoms:
diff --git a/pym/portage/tests/resolver/test_rebuild.py b/pym/portage/tests/resolver/test_rebuild.py
index 9a9e2eead..809dbed6c 100644
--- a/pym/portage/tests/resolver/test_rebuild.py
+++ b/pym/portage/tests/resolver/test_rebuild.py
@@ -45,7 +45,7 @@ class RebuildTestCase(TestCase):
ResolverPlaygroundTestCase(
["sys-libs/x"],
options = {"--rebuild" : True,
- "--norebuild-atoms" : ["sys-apps/b"]},
+ "--rebuild-exclude" : ["sys-apps/b"]},
mergelist = ['sys-libs/x-2', 'sys-apps/a-2', 'sys-apps/e-2'],
ignore_mergelist_order = True,
success = True),