[MacPorts] #14147: port lint should warn on illegal variant names
#14147: port lint should warn on illegal variant names -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts base enhancements Component: ports | Version: 1.7.0 Keywords: | -------------------------------------+-------------------------------------- `port lint` should warn when it encounters variants whose names are not composed entirely of legal characters. I'm not sure if the list of legal characters for variant names has ever been defined anywhere before, but looking through all variant names of all ports right now, I see that they are all composed of letters A-Z and a-z, numbers 0-9, underscore and hyphen/dash, and the hyphen/dash is the only one of those that causes problems. (A variant with a hyphen/dash in the name cannot be selected.) So `port lint` should warn if a variant name does not match the regular expression `^[A-Za-z0-9_]+$` Related: the guide should say something about valid variant names; see #14141. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14147> MacPorts </projects/macports> Ports system for Mac OS
#14147: port lint should warn on illegal variant names --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts base enhancements Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: --------------------------------------+------------------------------------- Changes (by raimue@macports.org): * status: new => closed * resolution: => fixed Comment: Implemented in r33679. Even though you said "warn" I implemented it as an error, as such variants are not selectable. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14147#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14147: port lint should warn on illegal variant names --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts base enhancements Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: --------------------------------------+------------------------------------- Comment (by ryandesign@macports.org): Thank you! That's what I meant. :) I changed the wording of the message slightly in r33680. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14147#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14147: port lint should warn on illegal variant names --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts base enhancements Component: base | Version: 1.7.0 Resolution: fixed | Keywords: --------------------------------------+------------------------------------- Changes (by jmpp@macports.org): * component: ports => base -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14147#comment:3> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts