From 4ffc250c2c198e04573f138754f48c13c5ce6e58 Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 22 Feb 2007 12:05:34 +0000 Subject: Added another form of sourceforge.net download URLs, as requested by wiz. --- pkgtools/url2pkg/files/url2pkg.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgtools/url2pkg') diff --git a/pkgtools/url2pkg/files/url2pkg.pl b/pkgtools/url2pkg/files/url2pkg.pl index 656b82af933..fcc4fedc897 100644 --- a/pkgtools/url2pkg/files/url2pkg.pl +++ b/pkgtools/url2pkg/files/url2pkg.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: url2pkg.pl,v 1.5 2007/02/22 08:21:53 rillig Exp $ +# $NetBSD: url2pkg.pl,v 1.6 2007/02/22 12:05:34 rillig Exp $ # use strict; @@ -238,7 +238,7 @@ sub generate_initial_package($) { } if (!$found) { - if ($url =~ qr"^http://(?:pr)?downloads\.sourceforge\.net/([^/]*)/([^/]+)\?(?:download|use_mirror=.*)$") { + if ($url =~ qr"^http://(?:pr)?downloads\.sourceforge\.net/([^/]*)/([^/]+)(?:\?(?:download|use_mirror=.*))?$") { my $pkgbase = $1; $distfile = $2; -- cgit v1.2.3