From: Zac Medico Date: Tue, 5 Aug 2008 02:15:16 +0000 (-0000) Subject: Remove the use.local.desc IUSE validation which is now replaced by glep56 X-Git-Tag: v2.2_rc7~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ee35062b014b5f2ba83492de35daaafb2dfe4b8;p=portage.git Remove the use.local.desc IUSE validation which is now replaced by glep56 metadata.xml validation. This was requested by Cardoe since he expects to complete the gleep56 conversion process pretty soon. svn path=/main/trunk/; revision=11329 --- diff --git a/bin/repoman b/bin/repoman index 03ef5635c..04eff733f 100755 --- a/bin/repoman +++ b/bin/repoman @@ -565,28 +565,6 @@ for x in range(0, repolevel - 1): def caterror(mycat): err(mycat+" is not an official category. Skipping QA checks in this directory.\nPlease ensure that you add "+catdir+" to "+repodir+"/profiles/categories\nif it is a new category.") -# retreive local USE list -luselist={} -try: - f = open(os.path.join(portdir, "profiles", "use.local.desc")) - utilities.parse_use_local_desc(f, luselist) - f.close() -except (IOError, OSError, ParseError), e: - logging.exception("Couldn't read from use.local.desc") - sys.exit(1) - -if portdir_overlay != portdir: - filename = os.path.join(portdir_overlay, "profiles", "use.local.desc") - if os.path.exists(filename): - try: - f = open(filename) - utilities.parse_use_local_desc(f, luselist) - f.close() - except (IOError, OSError, ParseError), e: - logging.exception("Couldn't read from '%s'" % (filename,)) - sys.exit(1) - del filename - # setup a uselist from portage uselist=[] try: @@ -1377,13 +1355,6 @@ for x in scanlist: if myuse[mypos] and (myuse[mypos] in muselist): del myuse[mypos] - # uselist checks - local - mykey = portage.dep_getkey(catpkg) - if mykey in luselist: - for mypos in range(len(myuse)-1,-1,-1): - if myuse[mypos] and (myuse[mypos] in luselist[mykey]): - del myuse[mypos] - if default_use and eapi == "0": for myflag in default_use: stats['EAPI.incompatible'] += 1 @@ -1435,7 +1406,8 @@ for x in scanlist: portage.dep.paren_reduce(myaux["RESTRICT"]), matchall=1) except portage.exception.InvalidDependString, e: stats["RESTRICT.syntax"] = stats["RESTRICT.syntax"] + 1 - fails["RESTRICT.syntax"].append(mykey+".ebuild RESTRICT: "+str(e)) + fails["RESTRICT.syntax"].append( + "%s: RESTRICT: %s" % (relative_path, e)) del e if myrestrict: myrestrict = set(portage.flatten(myrestrict))