From 12eae4696bd2ae1d8f67dd8faa496eb74b5466d6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Aug 2013 18:54:59 -0700 Subject: [PATCH] repoman: --include-exp-profiles, bug #481326 --- bin/repoman | 8 ++++++-- man/repoman.1 | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bin/repoman b/bin/repoman index 731509db3..31ae74755 100755 --- a/bin/repoman +++ b/bin/repoman @@ -218,6 +218,9 @@ def ParseArgs(argv, qahelp): parser.add_argument('-d', '--include-dev', dest='include_dev', action='store_true', default=False, help='include dev profiles in dependency checks') + parser.add_argument('-e', '--include-exp-profiles', choices=('y', 'n'), + default=False, help='include exp profiles in dependency checks') + parser.add_argument('--unmatched-removal', dest='unmatched_removal', action='store_true', default=False, help='enable strict checking of package.mask and package.unmask files for unmatched removal atoms') @@ -2243,8 +2246,9 @@ for x in effective_scanlist: for keyword, groups, prof in relevant_profiles: - if prof.status not in ("stable", "dev") or \ - prof.status == "dev" and not options.include_dev: + if not (prof.status == "stable" or \ + (prof.status == "dev" and options.include_dev) or \ + (prof.status == "exp" and options.include_exp_profiles == 'y')): continue dep_settings = arch_caches.get(prof.sub_path) diff --git a/man/repoman.1 b/man/repoman.1 index 3a0477145..36e36f83c 100644 --- a/man/repoman.1 +++ b/man/repoman.1 @@ -1,4 +1,4 @@ -.TH "REPOMAN" "1" "May 2013" "Portage VERSION" "Portage" +.TH "REPOMAN" "1" "Aug 2013" "Portage VERSION" "Portage" .SH NAME repoman \- Gentoo's program to enforce a minimal level of quality assurance in packages added to the portage tree @@ -88,6 +88,9 @@ profiles for dependency checks. \fB\-d\fR, \fB\-\-include\-dev\fR Include dev profiles in dependency checks. .TP +\fB\-e\fR, \fB\-\-include\-exp\-profiles\fR +Include exp profiles in dependency checks. +.TP \fB\-\-unmatched\-removal\fR Enable strict checking of package.mask and package.unmask files for unmatched removal atoms. -- 2.26.2