summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-16 07:59:12 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-16 07:59:12 +0000
commitbf85b528521001246d47c5c8b1832d735b1cbfdd (patch)
treebd3ae11d6b0e32d3ec125224282ca3803fed86a3
parent2cd135139ffa8899118db75ea9d9901f38a74d92 (diff)
downloadportage-bf85b528521001246d47c5c8b1832d735b1cbfdd.tar.gz
portage-bf85b528521001246d47c5c8b1832d735b1cbfdd.tar.bz2
portage-bf85b528521001246d47c5c8b1832d735b1cbfdd.zip
In order to reduce time consumed for dependency checks, skip 'dev' profiles
by default and add an --include-dev option which causes them to be checked. Given the current profiles.desc content, this approximately halves the number of profiles checked by default and also halves the time consumed by repoman. Thanks to Donnie Berkholz <dberkholz@g.o> for the suggestion. (trunk r11962) svn path=/main/branches/2.1.6/; revision=11963
-rwxr-xr-xbin/repoman6
-rw-r--r--man/repoman.13
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 067707bce..c22214afc 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -193,6 +193,9 @@ def ParseArgs(args, 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-dev', dest='include_dev', action='store_true',
+ default=False, help='include dev profiles in dependency checks')
+
parser.add_option('--without-mask', dest='without_mask', action='store_true',
default=False, help='behave as if no package.mask entries exist (not allowed with commit mode)')
@@ -1453,7 +1456,8 @@ for x in scanlist:
for prof in profiles[arch]:
- if prof[1] not in ("stable", "dev"):
+ if prof[1] not in ("stable", "dev") or \
+ prof[1] == "dev" and not options.include_dev:
continue
profdir = portdir+"/profiles/"+prof[0]
diff --git a/man/repoman.1 b/man/repoman.1
index 7b729567a..c20b6d05c 100644
--- a/man/repoman.1
+++ b/man/repoman.1
@@ -37,6 +37,9 @@ Ignore arch-specific failures (where arch != host)
\fB\-I\fR, \fB\-\-ignore\-masked\fR
Ignore masked packages (not allowed with commit mode)
.TP
+\fB\-\-include\-dev\fR
+Include dev profiles in dependency checks.
+.TP
\fB\-\-without\-mask\fR
Behave as if no package.mask entries exist (not allowed with commit mode)
.TP