From f70798352d176c573ee3d91ca01008b474e6cd80 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 28 May 2010 06:27:31 +0000 Subject: [PATCH] * Don't include an empty `nix-path-registration' on the CD. svn path=/nixos/trunk/; revision=22030 --- lib/make-iso9660-image.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/make-iso9660-image.sh b/lib/make-iso9660-image.sh index 3305b8856e2..01b0fafa112 100644 --- a/lib/make-iso9660-image.sh +++ b/lib/make-iso9660-image.sh @@ -54,8 +54,10 @@ done # Also include a manifest of the closures in a format suitable for # nix-store --load-db. -printRegistration=1 perl $pathsFromGraph closure-* > nix-path-registration -echo "nix-path-registration=nix-path-registration" >> pathlist +if [ -n "$object"; ]; then + printRegistration=1 perl $pathsFromGraph closure-* > nix-path-registration + echo "nix-path-registration=nix-path-registration" >> pathlist +fi # Add symlinks to the top-level store objects.