* Check whether any packages were generated. Apparently checkinstall

doesn't return a non-zero exit code if something goes wrong.

svn path=/nixpkgs/trunk/; revision=31258
This commit is contained in:
Eelco Dolstra 2012-01-03 22:25:46 +00:00
parent 30752215cd
commit 032617b0ab

View file

@ -68,6 +68,8 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
ensureDir $out/debs
find . -name "*.deb" -exec cp {} $out/debs \;
[ "$(echo $out/debs/*.deb)" != "" ]
for i in $out/debs/*.deb; do
header "Generated DEB package: $i"
dpkg-deb --info "$i"