Fix false positive in the 'unused local USE-description' warning. Thanks to
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Jan 2009 22:24:06 +0000 (22:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Jan 2009 22:24:06 +0000 (22:24 -0000)
Alexis Ballier <aballier@g.o> for reporting.

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

bin/repoman

index 217e8acc36efa48f6ac8baff7098796c2145d409..05d6d99c2e048a40d1d3e82d59d4069316708ec8 100755 (executable)
@@ -1369,11 +1369,11 @@ for x in scanlist:
                default_use = []
                for myflag in myaux["IUSE"].split():
                        flag_name = myflag.lstrip("+-")
+                       used_useflags.add(flag_name)
                        if myflag != flag_name:
                                default_use.append(myflag)
                        if flag_name not in uselist:
                                myuse.append(flag_name)
-               used_useflags.update(myuse)
 
                # uselist checks - metadata
                for mypos in range(len(myuse)-1,-1,-1):