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

svn path=/main/branches/2.1.2/; revision=8646

bin/repoman

index 666ed65452344330f7217ba70b425b9125241401..387a1382fe6f24382f0955049b1d95cb5fe2bdaf 100755 (executable)
@@ -1263,8 +1263,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")