summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico2013-04-28 22:05:44 (GMT)
committerZac Medico2013-04-28 22:05:44 (GMT)
commit9f14442ada82b5a076b1ea0093f0e9f133c10b47 (patch)
tree7b2ddbefecffe6073e3f0a2486f76076b81906e6
parent9993992fc36839fa0eec60b8750b614e819c3f1c (diff)
repoman: add --include-arches, bug #466116
-rwxr-xr-xbin/repoman15
-rw-r--r--man/repoman.14
2 files changed, 19 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index ca4aa0a..ca4fb53 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -235,6 +235,11 @@ def ParseArgs(argv, qahelp):
parser.add_option('-I', '--ignore-masked', dest='ignore_masked', action='store_true',
default=False, help='ignore masked packages (not allowed with commit mode)')
+ parser.add_option('--include-arches', dest='include_arches',
+ metavar='ARCHES', action='append',
+ help='A space separated list of arches used to '
+ 'filter the selection of profiles for dependency checks')
+
parser.add_option('-d', '--include-dev', dest='include_dev', action='store_true',
default=False, help='include dev profiles in dependency checks')
@@ -1267,6 +1272,11 @@ arch_caches = {}
arch_xmatch_caches = {}
shared_xmatch_caches = {"cp-list":{}}
+include_arches = None
+if options.include_arches:
+ include_arches = set()
+ include_arches.update(*[x.split() for x in options.include_arches])
+
# Disable the "ebuild.notadded" check when not in commit mode and
# running `svn status` in every package dir will be too expensive.
@@ -2223,6 +2233,11 @@ for x in effective_scanlist:
# A missing profile will create an error further down
# during the KEYWORDS verification.
continue
+
+ if include_arches is not None:
+ if arch not in include_arches:
+ continue
+
relevant_profiles.extend((keyword, groups, prof)
for prof in profiles[arch])
diff --git a/man/repoman.1 b/man/repoman.1
index e715f05..912ba65 100644
--- a/man/repoman.1
+++ b/man/repoman.1
@@ -75,6 +75,10 @@ Do not use the \fIREPOMAN_DEFAULT_OPTS\fR environment variable.
\fB\-I\fR, \fB\-\-ignore\-masked\fR
Ignore masked packages (not allowed with commit mode)
.TP
+.BR "\-\-include\-arches " ARCHES
+A space separated list of arches used to filter the selection of
+profiles for dependency checks.
+.TP
\fB\-d\fR, \fB\-\-include\-dev\fR
Include dev profiles in dependency checks.
.TP