[79374] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Sun Jun 12 01:09:47 PDT 2011


On Jun 11, 2011, at 17:20, deric at macports.org wrote:

> Revision: 79374
>          http://trac.macports.org/changeset/79374
> Author:   deric at macports.org
> Date:     2011-06-11 15:19:58 -0700 (Sat, 11 Jun 2011)
> Log Message:
> -----------
> Lint compliance. Remove hardcoded version.
> 
> Modified Paths:
> --------------
>    trunk/dports/python/py25-django/Portfile
>    trunk/dports/python/py26-django/Portfile
>    trunk/dports/python/py27-django/Portfile
> 
> Modified: trunk/dports/python/py25-django/Portfile
> ===================================================================
> --- trunk/dports/python/py25-django/Portfile	2011-06-11 21:12:29 UTC (rev 79373)
> +++ trunk/dports/python/py25-django/Portfile	2011-06-11 22:19:58 UTC (rev 79374)
> @@ -14,7 +14,7 @@
>                     encourages rapid development and clean, pragmatic \
>                     design.
> 
> -master_sites        http://media.djangoproject.com/releases/1.3/
> +master_sites        http://media.djangoproject.com/releases/[string range ${version} 0 2]/

That's not a very general method of computing the branch. (It relies on the first and second number of the version being single digits. This may be the case today, but it might not be later.) The suggested way to compute the branch is in the PortfileRecipes:

https://trac.macports.org/wiki/PortfileRecipes#branch





More information about the macports-dev mailing list