From: Zac Medico Date: Sun, 28 Apr 2013 22:05:44 +0000 (-0700) Subject: repoman: add --include-arches, bug #466116 X-Git-Tag: v2.2.0_alpha174~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f14442ada82b5a076b1ea0093f0e9f133c10b47;p=portage.git repoman: add --include-arches, bug #466116 --- diff --git a/bin/repoman b/bin/repoman index ca4aa0ae8..ca4fb533e 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 e715f0532..912ba65d8 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