1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

* Add a hook for running a test after the RPMs have been installed.

svn path=/nixpkgs/trunk/; revision=33966
This commit is contained in:
Eelco Dolstra 2012-05-01 20:31:01 +00:00
parent 87693235b8
commit 40609ab6d5

View file

@ -32,14 +32,19 @@ vmTools.buildRPM (
echo "installing $i..."
rpm -ip "$i" --excludepath /nix/store
fi
done
eval "$postRPMInstall"
for i in $out/rpms/*/*.rpm; do
if echo $i | grep -vq "\.src\.rpm$"; then
rpmName="$(rpm -qp "$i")"
echo "uninstalling $rpmName..."
rpm -e "$rpmName"
fi
done
for i in $out/rpms/*/*.src.rpm; do
echo "file srpm $i" >> $out/nix-support/hydra-build-products
done