* Upload to catamaran instead of losser.

svn path=/nixpkgs/trunk/; revision=628
gstqt5
Eelco Dolstra 2004-01-09 16:14:16 +00:00
parent a117391400
commit f2eab1a900
1 changed files with 3 additions and 5 deletions

View File

@ -23,10 +23,9 @@ srcexpr=${storeexprs[0]}
testexpr=${storeexprs[1]}
rpmexpr=${storeexprs[2]}
if ! nix-store -vvvv -r "$srcexpr" > /dev/null; then exit 1; fi
if ! outpath=$(nix-store -qn "$srcexpr"); then exit 1; fi
if ! outpath=$(nix-store -vvvv -qnf "$srcexpr"); then exit 1; fi
uploader="http://losser.st-lab.cs.uu.nl/~eelco/cgi-bin/create-dist.pl"
uploader="http://catamaran.labs.cs.uu.nl/~eelco/cgi-bin/create-dist.pl"
# Extract the name of the release.
relname=$((cd $outpath && echo nix-*.tar.bz2) | sed -e s/.tar.bz2//)
@ -54,8 +53,7 @@ $curl -T "$outpath"/manual.tar.bz2 "$uploader/upload-tar/$sessionname" || exit 1
#if ! nix-store -vvvv -r "$testexpr" > /dev/null; then exit 1; fi
# Perform an RPM build, and upload the RPM to the server.
if ! nix-store -vvvv -r "$rpmexpr" > /dev/null; then exit 1; fi
if ! rpmpath=$(nix-store -qn "$rpmexpr"); then exit 1; fi
if ! rpmpath=$(nix-store -vvvv -qnf "$rpmexpr"); then exit 1; fi
$curl -T "$rpmpath"/nix-*.rpm "$uploader/upload/$sessionname/" || exit 1
# Finish the upload session.