summaryrefslogtreecommitdiff
path: root/pkgtools/url2pkg/files
diff options
context:
space:
mode:
authorrh <rh>2003-04-23 09:18:29 +0000
committerrh <rh>2003-04-23 09:18:29 +0000
commit6e174349ed20714112a2f09f6d0c752bd70df4a3 (patch)
treeae8a52a30a30bb8c84116d88ecd8d7b6bc2625b7 /pkgtools/url2pkg/files
parentd86ffbd7649cc3da49bbd695309b86e27278b380 (diff)
downloadpkgsrc-6e174349ed20714112a2f09f6d0c752bd70df4a3.tar.gz
Update url2pkg to 1.23. In this version, the SourceForge magic now works
with or without the '?use_mirror=.*' suffix.
Diffstat (limited to 'pkgtools/url2pkg/files')
-rwxr-xr-xpkgtools/url2pkg/files/url2pkg6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/url2pkg/files/url2pkg b/pkgtools/url2pkg/files/url2pkg
index 34736d20cc5..ddba321431a 100755
--- a/pkgtools/url2pkg/files/url2pkg
+++ b/pkgtools/url2pkg/files/url2pkg
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: url2pkg,v 1.23 2003/04/22 00:35:09 rh Exp $
+# $NetBSD: url2pkg,v 1.24 2003/04/23 09:18:30 rh Exp $
#
# url2pkg
# (c) 1999-2002 Hubert Feyrer <hubert@feyrer.de>
@@ -40,8 +40,8 @@ if [ ! -f w*/.extract_done ]; then
fi
sourceforge="http://prdownloads.sourceforge.net/"
- if [ `expr "$url" : "$sourceforge"` -gt 0 ]; then
- DISTNAME=`expr "$url" : '.*/\([^/]*\)?'`
+ if [ `expr "$url" : "$sourceforge.*"` -gt 0 ]; then
+ DISTNAME=`expr "$url" : '.*/\([^/?]*\)'`
sfname=`expr "$url" : "${sourceforge}\(.*\)/[^/]*\$"`
MASTER_SITES='${MASTER_SITE_SOURCEFORGE:='"$sfname"'/}'
HOMEPAGE="http://$sfname.sourceforge.net/"