diff options
author | rillig <rillig@pkgsrc.org> | 2007-02-22 12:05:34 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-02-22 12:05:34 +0000 |
commit | 4ffc250c2c198e04573f138754f48c13c5ce6e58 (patch) | |
tree | a2e1763e644610d74fb0a797666001e161a9880e /pkgtools | |
parent | c371c5e5ffa11fa22d7493c3e0879bf0864bd5a9 (diff) | |
download | pkgsrc-4ffc250c2c198e04573f138754f48c13c5ce6e58.tar.gz |
Added another form of sourceforge.net download URLs, as requested by
wiz.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/url2pkg/files/url2pkg.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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; |