danf: curl-www/dl mod_entry.cgi,1.9,1.10 remcheck.pl,1.20,1.21

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/dl
In directory labb:/tmp/cvs-serv7174

Modified Files:
	mod_entry.cgi remcheck.pl 
Log Message:
Replace $cpu in URLs/regexes as well as $version and $osversion


Index: mod_entry.cgi
===================================================================
RCS file: /cvsroot/curl/curl-www/dl/mod_entry.cgi,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mod_entry.cgi	18 May 2005 07:29:05 -0000	1.9
+++ mod_entry.cgi	1 Nov 2006 17:10:48 -0000	1.10
@@ -190,7 +190,7 @@
                 "Full name");
 
     alternative("Packager Email/URL", "email",
-                "name\@somwhere.com or URL");
+                "name\@somewhere.com or URL");
 
     alternative("Regex-name", "re",
                 "name of the package regex, see latest.cgi");
@@ -202,7 +202,7 @@
                 "'Yes' makes this entry not appear in the HTML output");
 
     alternative("Autocheck this URL", "churl",
-                "\$version gets replaced", 50);
+                "\$version/\$osversion/\$cpu gets replaced", 50);
 
     alternative("Match this regex in the autocheck URL", "chregex",
                 "make sure the first () group extracts the version number, unless \$version is part of check URL", 40);

Index: remcheck.pl
===================================================================
RCS file: /cvsroot/curl/curl-www/dl/remcheck.pl,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- remcheck.pl	19 May 2006 20:55:05 -0000	1.20
+++ remcheck.pl	1 Nov 2006 17:10:48 -0000	1.21
@@ -177,6 +177,7 @@
     my $chregex = $$ref{'chregex'};
     my $churl = $inurl;
     my $osversion = $$ref{'osver'};
+    my $cpu = $$ref{'cpu'};
 
     # is '$version' embedded in the test URL
     my $versionembedded;
@@ -251,6 +252,7 @@
             $versionembedded=1;
         }
         $churl =~ s/\$osversion/$osversion/g;
+        $churl =~ s/\$cpu/$cpu/g;
 
         my @data;
 
@@ -273,6 +275,7 @@
             # replace variables in the regex too
             $chregex =~ s/\$version/$version/g;
             $chregex =~ s/\$osversion/$osversion/g;
+            $chregex =~ s/\$cpu/$cpu/g;
 
             logmsg sprintf(" Use regex <b><tt>%s</tt></b>\n",
                            CGI::escapeHTML($chregex));
@@ -348,6 +351,7 @@
                     $churl = $inurl;
                     $churl =~ s/\$version/$ver/g;
                     $churl =~ s/\$osversion/$osversion/g;
+                    $churl =~ s/\$cpu/$cpu/g;
                     
                     @data = geturl($churl, 1);
                     ($cl, $st) = content_length(@data);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.