Make a safer version of default versionReferenceCreator in upstream data updater; use yet another version reference creator in xneur; check in correct URL for it

svn path=/nixpkgs/trunk/; revision=17211
This commit is contained in:
Michael Raskin 2009-09-17 05:18:19 +00:00
parent b592993513
commit 85ff50fe4a
3 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,7 @@ rec {
version="0.9.6";
name="xneur-0.9.6";
hash="0xxyj2w5ckk2pnqsx853zgs6s2lq1cb101px472rccpixcbdfs47";
url="http://dists.xneur.ru/release-0.9.6.6/tgz/xneur-0.9.6.tar.bz2";
url="http://dists.xneur.ru/release-${version}/tgz/xneur-${version}.tar.bz2";
advertisedUrl="http://dists.xneur.ru/release-0.9.6/tgz/xneur-0.9.6.tar.bz2";

View file

@ -1,4 +1,5 @@
{
downloadPage = "http://xneur.ru/wiki/Downloads";
baseName = "xneur";
versionReferenceCreator = "$(replaceAllVersionOccurences)";
}

View file

@ -52,7 +52,7 @@ prefetchClause=""
mirrorUrl="$(echo "$freshUrl" |
eval "sed -r -e \"$(getAttr versionReferenceCreator \
's/-([0-9.]+)[.]/-${version}./')\"" |
's/-'"${version}"'[.]/-\${version}./')\"" |
eval "sed -r -e \"$(getAttr mirrorSedScript)\"")"
url="$mirrorUrl"