diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-06-23 04:58:07 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-06-23 04:58:07 +0000 |
commit | 44216c2ef81fb7eeb1d0c25d2dcf8652714c9798 (patch) | |
tree | 78eab590c26f1003e5c8e470cda742b6b1447706 /pkgs/build-support/upstream-updater/update-upstream-data.sh | |
parent | 63089535472f5634471967e276843375ba818603 (diff) | |
download | nixlib-44216c2ef81fb7eeb1d0c25d2dcf8652714c9798.tar nixlib-44216c2ef81fb7eeb1d0c25d2dcf8652714c9798.tar.gz nixlib-44216c2ef81fb7eeb1d0c25d2dcf8652714c9798.tar.bz2 nixlib-44216c2ef81fb7eeb1d0c25d2dcf8652714c9798.tar.lz nixlib-44216c2ef81fb7eeb1d0c25d2dcf8652714c9798.tar.xz nixlib-44216c2ef81fb7eeb1d0c25d2dcf8652714c9798.tar.zst nixlib-44216c2ef81fb7eeb1d0c25d2dcf8652714c9798.zip |
Use an SF version extractor with better chances to yield correct result by default
svn path=/nixpkgs/trunk/; revision=22390
Diffstat (limited to 'pkgs/build-support/upstream-updater/update-upstream-data.sh')
-rwxr-xr-x | pkgs/build-support/upstream-updater/update-upstream-data.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/upstream-updater/update-upstream-data.sh b/pkgs/build-support/upstream-updater/update-upstream-data.sh index ac23029bc738..fc44264d9f62 100755 --- a/pkgs/build-support/upstream-updater/update-upstream-data.sh +++ b/pkgs/build-support/upstream-updater/update-upstream-data.sh @@ -56,8 +56,8 @@ prefetchClause="" echo "Sourceforge-corrected URL: $freshUrl" >&2 version="$(echo "$freshUrl" | - sed -re "$extractReleaseSF")" - baseName="$(getAttr baseName "$(echo "$freshUrl" | sed -re 's@.*/projects/([^/]+)/.*@\1@')")" + sed -re "$extractVersionSF")" + baseName="$(getAttr baseName "$(echo "$freshUrl" | sed -re 's@.*/project/([^/]+)/.*@\1@')")" url="$freshUrl" name="$baseName-$version" advertisedUrl="$freshUrl" |