From: Zac Medico Date: Mon, 30 Jul 2007 03:42:15 +0000 (-0000) Subject: Make repoman work with both + and - flags in IUSE. (branches/2.1.2 r6789) X-Git-Tag: v2.1.2.11~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=910d88a742b74e7f2c3eea38a69f1d0a5ade63d9;p=portage.git Make repoman work with both + and - flags in IUSE. (branches/2.1.2 r6789) svn path=/main/branches/2.1.2.9/; revision=7457 --- diff --git a/bin/repoman b/bin/repoman index 34227bfd9..3a939d9ac 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1282,13 +1282,12 @@ for x in scanlist: myuse = [] default_use = [] for myflag in myaux["IUSE"].split(): - if myflag.startswith("+"): + flag_name = myflag.lstrip("+-") + if myflag != flag_name: default_use.append(myflag) - myflag = myflag[1:] - myuse.append(myflag) - for mypos in range(len(myuse)-1,-1,-1): - if myuse[mypos] and (myuse[mypos] in uselist): - del myuse[mypos] + if flag_name not in uselist: + myuse.append(flag_name) + # uselist checks - local mykey = portage.dep_getkey(catpkg) if luselist.has_key(mykey):