Add overlay support for use.local.desc in repoman.
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 07:43:10 +0000 (07:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 07:43:10 +0000 (07:43 -0000)
svn path=/main/trunk/; revision=3750

bin/repoman

index 3633582a436309f0148de27438b8bddd1e2712f4..51aaff44204b658ab833657482771db315545136 100755 (executable)
@@ -553,6 +553,18 @@ except (IOError, OSError, ParseError), e:
        print >> sys.stderr, str(e)
        err("Couldn't read from use.local.desc")
 
+if portdir_overlay != portdir:
+       filename = os.path.join(portdir_overlay, "profiles", "use.local.desc")
+       if os.path.exists(filename):
+               try:
+                       f = open(filename)
+                       parse_use_local_desc(f, luselist)
+                       f.close()
+               except (IOError, OSError, ParseError), e:
+                       print >> sys.stderr, str(e)
+                       err("Couldn't read from '%s'" % filename)
+       del filename
+
 # setup a uselist from portage
 uselist=[]
 try: