mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
* After building an RPM, install and uninstall it.
svn path=/nixpkgs/trunk/; revision=33257
This commit is contained in:
parent
a772508846
commit
9f683a5aac
|
@ -29,11 +29,21 @@ vmTools.buildRPM (
|
|||
for i in $out/rpms/*/*.rpm; do
|
||||
if echo $i | grep -vq "\.src\.rpm$"; then
|
||||
echo "file rpm $i" >> $out/nix-support/hydra-build-products
|
||||
|
||||
echo "installing $i..."
|
||||
rpm -ip "$i" --excludepath /nix/store
|
||||
|
||||
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
|
||||
|
||||
for rpmdir in $extraRPMs ; do
|
||||
echo "file rpm-extra $(ls $rpmdir/rpms/*/*.rpm | grep -v 'src\.rpm' | sort | head -1)" >> $out/nix-support/hydra-build-products
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue