Skip to content

Commit

Permalink
(check-update) R-clim.pact_2.3-10 fails still
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto-fujiwara committed Jan 3, 2021
1 parent f297e13 commit ee8d206
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions check-update
Expand Up @@ -147,7 +147,7 @@ my(%LongName) = (
'G', 'Gnome',
'h', 'HTTP Header',
'H', 'HTTP Header Summary',
'k', 'DISTBASE Extract special to SimplePatternY',
'k', 'DISTBASE Extract special to SimplePatternY ($DEBUG_DISTBASE_EXTRACT)',
'l', 'Curl Listing',
'm', 'MASTER_SITES_LISTING',
'M', 'MASTER_SITE',
Expand Down Expand Up @@ -1710,7 +1710,7 @@ sub GetDistBaseAutomatic($$$){

my ($pkgname) = $PKGBASE .'-'.$PKGVERSION;
my ($distbase) = $DISTNAME;
$distbase =~ s/([-_])[0-9.]+$//;
$distbase =~ s/([-_])[0-9.-]+$//; ## clim.pact_2.3-10 needs - in the latter part
my $connection = $1;
my ($pattern);
my ($SimplePattern);
Expand Down Expand Up @@ -2002,7 +2002,8 @@ sub GetDistBase($$$$$) { # <- Main DISTBASEDISTBASE
($DISTBASE, $pattern, $SimplePattern) = @return;
print STDERR sprintf("%4d DISTBASE(%s) pattern(%s) SimplePattern(%s)",
__LINE__ , $DISTBASE, $pattern, $SimplePattern ),
" Automatic Found\n" if $DEBUG_AUTOMATIC_DISTBASE;
" Automatic Found\n" if $DEBUG_AUTOMATIC_DISTBASE ||
$DEBUG_DISTBASE || $DEBUG_DISTBASE_EXTRACT ;
push(@SimplePattern, $SimplePattern);
return $DISTBASE;
} else {
Expand Down Expand Up @@ -2167,7 +2168,7 @@ my ($numeric_no_delim_variation) = $numeric_no_delim . '[0]+';
if (
$DISTBASE =~ /([a-zA-Z]+[0-9]+)([-])$PKGVERSION([-])([a-zA-Z]+)/ || # GetDistBase (3) ---------------
$DISTBASE =~ /([a-zA-Z-]+)([_.-])$PKGVERSION([_.-])([a-zA-Z]+)/ || # GetDistBase (3) py27-pslib (python-pslib_0.2.0.orig)
$DISTBASE =~ /([a-zA-Z]+[0-9])([-])[0-9.]+([-])([a-zA-Z]+)/ || # GetDistBase (3) games/nethack-lib
$DISTBASE =~ /([a-zA-Z.]+[0-9])([-])[0-9.]+([-])([a-zA-Z]+)/ || # GetDistBase (3) games/nethack-lib
0
) {
my ($former) = $1;
Expand Down Expand Up @@ -2213,13 +2214,14 @@ my ($numeric_no_delim_variation) = $numeric_no_delim . '[0]+';
" (PKGVERSION)\t", $PKGVERSION , "\n"
if ($DEBUG_DISTBASE || $DEBUG_SPECIAL_PATTERN || $DEBUG_DISTBASE_EXTRACT);
return $PKGBASE ;}

if ($DISTBASE =~ /([a-zA-Z-]+)([0-9])([0-9])$/ ) { # GetDistBase (6) -----------
print STDERR sprintf("%4d <", __LINE__ ), (caller 0)[3], '>:', (caller 0)[2], ' $DISTBASE: ' , $DISTBASE ,' ------------------',"\n"
if $DEBUG_DISTBASE_EXTRACT ;
if ($DISTBASE =~ /([a-zA-Z-.]+)([0-9-_])([0-9-.]+)$/ ) { # GetDistBase (6) -----------
my ($distbase) = $1;
my ($a) = $2;
my ($b) = $3;
if ( $NoDot{$distbase} ) { $SpecialPatternY = 'm|.*' . $distbase.'([0-9])([0-9])\..*|; $version = $1.$2;' ; }
else { $SpecialPatternY = 'm|.*' . $distbase.'([0-9])([0-9])\..*|; $version = $1.\'.\'.$2;' ;}
else { $SpecialPatternY = 'm|.*' . $distbase.$a.'([0-9-._]+)|; $version = $1;' ;}
print STDERR sprintf("%4d <", __LINE__ ), (caller 0)[3], '>:', (caller 0)[2], ' ------------------',"\n",
" %NoDot\t", $NoDot{$distbase}, "\n",
" (DISTNAME)\t", $DISTBASE, "\n",
Expand Down

0 comments on commit ee8d206

Please sign in to comment.