···40 cd $out
41 fi
4243- # Remove symlinks to the input tarballs, they aren't needed.
44- rm $out/*.tar.gz
004546 createOctavePackagesPath $out ${octave}
470048 for path in ${lib.concatStringsSep " " packages}; do
49 if [ -e $path/*.tar.gz ]; then
50 $out/bin/octave-cli --eval "pkg local_list $out/.octave_packages; \
···40 cd $out
41 fi
4243+ # 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
46+ rm -f $out/*.tar.gz
4748 createOctavePackagesPath $out ${octave}
4950+ # Create the file even if the loop afterwards has no packages to run over
51+ touch $out/.octave_packages
52 for path in ${lib.concatStringsSep " " packages}; do
53 if [ -e $path/*.tar.gz ]; then
54 $out/bin/octave-cli --eval "pkg local_list $out/.octave_packages; \