diff options
author | rh <rh@pkgsrc.org> | 2003-04-23 09:18:29 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2003-04-23 09:18:29 +0000 |
commit | 6b665bbfbd9d6f3d41927b91f19fa9fe77d3b84a (patch) | |
tree | ae8a52a30a30bb8c84116d88ecd8d7b6bc2625b7 /pkgtools/url2pkg/files | |
parent | 0652bebd8a5915dfd038f8f6a54d99e945d73013 (diff) | |
download | pkgsrc-6b665bbfbd9d6f3d41927b91f19fa9fe77d3b84a.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-x | pkgtools/url2pkg/files/url2pkg | 6 |
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/" |