Opened 17 years ago

Closed 17 years ago

Last modified 15 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@… 17 years ago.
macports-major.patch

Download all attachments as: .zip

Change History (9)

Changed 17 years ago by afb@…

Attachment: macports-major.patch added

macports-major.patch

comment:1 Changed 17 years ago by afb@…

Component: portsbase

comment:2 Changed 17 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 17 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 17 years ago by afb@…

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

comment:5 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

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 17 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: Needs developer reviewMacPorts base bugs

Milestone Needs developer review deleted

comment:7 Changed 17 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 15 years ago by jmroot (Joshua Root)

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