Add support for licenses in overlays (bug #137975).
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 07:56:09 +0000 (07:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Jul 2006 07:56:09 +0000 (07:56 -0000)
svn path=/main/trunk/; revision=3751

bin/repoman

index 51aaff44204b658ab833657482771db315545136..2342b1dab3a3c3cc771dd285fe23f395abf08cf1 100755 (executable)
@@ -581,9 +581,11 @@ except:
        err("Couldn't read USE flags from use.desc")
 
 # retrieve a list of current licenses in portage
-liclist=portage.listdir(portdir+"/licenses")
+liclist = set(portage.listdir(os.path.join(portdir, "licenses")))
 if not liclist:
        err("Couldn't find licenses?")
+if portdir_overlay != portdir:
+       liclist.update(portage.listdir(os.path.join(portdir_overlay, "licenses")))
 
 # retrieve list of offical keywords
 try: