summaryrefslogtreecommitdiff
path: root/pkgtools/url2pkg
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-02-22 12:05:34 +0000
committerrillig <rillig@pkgsrc.org>2007-02-22 12:05:34 +0000
commit92b1ef5ec1f2ec0b75912a153ee389a38b31969a (patch)
treea2e1763e644610d74fb0a797666001e161a9880e /pkgtools/url2pkg
parent8a9c370106fab04ec1d2db5bb92a51737fe00788 (diff)
downloadpkgsrc-92b1ef5ec1f2ec0b75912a153ee389a38b31969a.tar.gz
Added another form of sourceforge.net download URLs, as requested by
wiz.
Diffstat (limited to 'pkgtools/url2pkg')
-rw-r--r--pkgtools/url2pkg/files/url2pkg.pl4
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;