* 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,9 +32,14 @@ vmTools.buildRPM (
echo "installing $i..." echo "installing $i..."
rpm -ip "$i" --excludepath /nix/store 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")" rpmName="$(rpm -qp "$i")"
echo "uninstalling $rpmName..." echo "uninstalling $rpmName..."
rpm -e "$rpmName" rpm -e "$rpmName"
fi fi