Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#12224 closed enhancement (fixed)

RFE: provide ${os.major} instead of local regexps

Reported by: afb@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.5
Component: base Version: 1.5
Keywords: Cc:
Port:

Description

Provide ${os.major} with the major ${os.version} to use for platform variants and for packaging. Having it in one place makes it easier to modify for different OSes, and less code when using...

Attachments (1)

macports-major.patch (4.0 KB) - added by afb@… 14 years ago.
macports-major.patch

Download all attachments as: .zip

Change History (9)

Changed 14 years ago by afb@…

Attachment: macports-major.patch added

macports-major.patch

comment:1 Changed 14 years ago by afb@…

Component: portsbase

comment:2 Changed 14 years ago by kballard (Lily Ballard)

Resolution: fixed
Status: newclosed

Looks good, though there's no reason to use a regexp for this when we can just split on periods. Committed with that change in r26693. Thanks.

comment:3 Changed 14 years ago by afb@…

Thanks for applying the change, now we can include the ${os.major} when fetching remote packages and when setting up repositories - something like ${os.platform}/${os.major}/${os.arch}...

comment:4 Changed 14 years ago by afb@…

It should be noted that the patch only adds the variable, it doesn't actually change naming.

comment:5 Changed 14 years ago by jmpp@…

Milestone: Needs developer review

Go to the dev list archive to read my comments on this: http://lists.macosforge.org/pipermail/macports-dev/2007-July/002041.html

Setting milestone to "Needs dev review", hoping we get better traction there.

-jmpp

comment:6 Changed 14 years ago by jmpp@…

Milestone: Needs developer reviewMacPorts base bugs

Milestone Needs developer review deleted

comment:7 Changed 14 years ago by nox@…

Milestone: MacPorts base bugsMacPorts base enhancements
Priority: ExpectedNormal
Summary: provide ${os.major} instead of local regexpsRFE: provide ${os.major} instead of local regexps

comment:8 Changed 11 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.5
Note: See TracTickets for help on using tickets.