summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-07-22 18:26:52 +0000
committerZac Medico <zmedico@gentoo.org>2009-07-22 18:26:52 +0000
commita8b91fbb43c2bf4c25410279a3472c674d2c3344 (patch)
treeda14611dcac90c8ab605d5656dee986453367516 /bin/repoman
parentfe6e94590a81975460289b67113bb85c931bd4cf (diff)
downloadportage-a8b91fbb43c2bf4c25410279a3472c674d2c3344.tar.gz
portage-a8b91fbb43c2bf4c25410279a3472c674d2c3344.tar.bz2
portage-a8b91fbb43c2bf4c25410279a3472c674d2c3344.zip
Bug #270040 - Make repoman parse the categories file from the overlay.
svn path=/main/trunk/; revision=13850
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman
index c8f32f4a4..97f24ccd2 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -513,6 +513,14 @@ logging.info('Setting paths:')
logging.info('PORTDIR = "' + portdir + '"')
logging.info('PORTDIR_OVERLAY = "%s"' % env['PORTDIR_OVERLAY'])
+categories = []
+for path in set([portdir, portdir_overlay]):
+ categories.extend(portage.util.grabfile(
+ os.path.join(path, 'profiles', 'categories')))
+repoman_settings.categories = tuple(sorted(
+ portage.util.stack_lists([categories], incremental=1)))
+del categories
+
portdb.mysettings = repoman_settings
root_config = RootConfig(repoman_settings, trees[root], None)
# We really only need to cache the metadata that's necessary for visibility