@@ -40,11 +40,15 @@ in buildEnv {
43− # Remove symlinks to the input tarballs, they aren't needed.
43+ # Remove symlinks to the input tarballs, they aren't needed, use -f so it
44+ # will not fail if no .tar.gz symlinks are there - for example if
45+ # sommething which is not a tarball used as a package
44− rm $out/*.tar.gz
46+ rm -f $out/*.tar.gz
46 createOctavePackagesPath $out ${octave}
48 createOctavePackagesPath $out ${octave}
50+ # Create the file even if the loop afterwards has no packages to run over
51+ touch $out/.octave_packages
48 for path in ${lib.concatStringsSep " " packages}; do
52 for path in ${lib.concatStringsSep " " packages}; do
49 if [ -e $path/*.tar.gz ]; then
53 if [ -e $path/*.tar.gz ]; then
50 $out/bin/octave-cli --eval "pkg local_list $out/.octave_packages; \
54 $out/bin/octave-cli --eval "pkg local_list $out/.octave_packages; \