From ff7273fea9c25093edff5258e3154e118d2d9e4a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 2 Jul 2006 07:56:09 +0000 Subject: [PATCH] Add support for licenses in overlays (bug #137975). svn path=/main/trunk/; revision=3751 --- bin/repoman | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/repoman b/bin/repoman index 51aaff442..2342b1dab 100755 --- a/bin/repoman +++ b/bin/repoman @@ -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: -- 2.26.2