repoman: --include-exp-profiles, bug #481326
authorZac Medico <zmedico@gentoo.org>
Thu, 22 Aug 2013 01:54:59 +0000 (18:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 22 Aug 2013 01:58:49 +0000 (18:58 -0700)
bin/repoman
man/repoman.1

index 731509db36c4e9a6e906374567df90b6a624415d..31ae7475510aa980e5b65c81fdaaf68e76fe74d7 100755 (executable)
@@ -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)
index 3a0477145a039ca8380c81f54e59c8ed8cd85c79..36e36f83c79d47166be3d47a56460710cfb57df0 100644 (file)
@@ -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.