create-mkspec.sh: Exit 0 at the end of install section

Cut short CentOS magic appended to %install scriptlet, which
would generates .pyo files and other cruft.

See also https://stackoverflow.com/questions/30317213

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-12-14 11:18:08 +00:00
commit 62643ed446

View file

@ -92,6 +92,7 @@ _cat <<- EOT
|echo "make install"
|echo "export PATH=$MOD_SCRIPT_DIR:\\\$PATH"
|echo "/bin/bash pkg.sh milk-install-log -p \\\$ENV_PREFIX -n \$NAME -t rpm -s \\"$subpackages\\" \$INSTALL_LOG \`dirname \$INSTALL_LOG\`"
|echo "exit 0" # <- Cut short CentOS magic appended to install scriptlet, which would generate .pyo files and other cruft.
EOT
for p in $subpackages; do