Bug #140180 - Never trigger a LICENSE.missing violation for old style
authorZac Medico <zmedico@gentoo.org>
Sat, 24 Nov 2007 22:11:14 +0000 (22:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 24 Nov 2007 22:11:14 +0000 (22:11 -0000)
virtuals since they don't directly install anything.

svn path=/main/trunk/; revision=8645

bin/repoman

index e5893347c5dde091f0af999135671fbb2ddcf7a0..c86b4f3225f58db1e8fe2734ba06122e65d62a33 100755 (executable)
@@ -1143,8 +1143,10 @@ for x in scanlist:
                                stats["virtual.exists"]+=1
                                fails["virtual.exists"].append(x+"/"+y+".ebuild: "+prov_cp)
 
-               for pos in range(0,len(missingvars)):
-                       if not myaux[missingvars[pos]]:
+               for pos, missing_var in enumerate(missingvars):
+                       if not myaux.get(missing_var):
+                               if missing_var == "LICENSE" and catdir == "virtual":
+                                       continue
                                myqakey=missingvars[pos]+".missing"
                                stats[myqakey]=stats[myqakey]+1
                                fails[myqakey].append(x+"/"+y+".ebuild")