[macports-ports] 01/04: livecheck/sourceforge.tcl: update default livecheck.regex

Ryan Schmidt ryandesign at macports.org
Sat Oct 14 19:50:17 UTC 2017


On Oct 13, 2017, at 18:29, David B. Evans wrote:

> David B. Evans (dbevans) pushed a commit to branch master
> in repository macports-ports.
> 
> 
> https://github.com/macports/macports-ports/commit/936108729d65fdf02255f1327d2da81da306e894
> 
> commit 936108729d65fdf02255f1327d2da81da306e894
> 
> Author: David B. Evans <devans at macports.org>
> AuthorDate: Fri Oct 13 15:46:51 2017 -0700
> 
>     livecheck/sourceforge.tcl: update default livecheck.regex
>     
>     Addresses widespread regex mismatches due to apparent changes
>     in sourceforge's RSS format. A few irregularities remain.
> 
> ---
>  _resources/port1.0/livecheck/sourceforge.tcl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff --git a/_resources/port1.0/livecheck/sourceforge.tcl b/_resources/port1.0/livecheck/sourceforge.tcl
> 
> index b1fac9b..a33fcd7 100644
> 
> --- a/_resources/port1.0/livecheck/sourceforge.tcl
> 
> +++ b/_resources/port1.0/livecheck/sourceforge.tcl
> 
> @@ -16,6 +16,6 @@ if {${livecheck.distname} eq "default"} {
> 
>      set livecheck.distname ${livecheck.name}
>  }
>  if {${livecheck.regex} eq ""} {
> -    set livecheck.regex [list "/[quotemeta ${livecheck.distname}]/files/(?:\[0-9a-z.\]+/)?\[a-zA-Z_-\]+(\[0-9a-z.\]+)\\.\[a-zA-Z0-9\]+/download"]
> +    set livecheck.regex [list "/[quotemeta ${livecheck.distname}]-(\\d+(?:\\.\\d+)*)"]
>  }
>  set livecheck.type "regex"


Just to check: Did you know Rainer had just modified this regex before your commit?

https://github.com/macports/macports-ports/commits/master/_resources/port1.0/livecheck/sourceforge.tcl

I'm wondering if your change undid what Rainer was trying to accomplish.




More information about the macports-dev mailing list