[[ ${!x-UNSET_VAR} != UNSET_VAR ]] && declare -r ${x}
done
unset x
+# Set IMAGE for minimal backward compatibility with
+# overlays or user's bashrc, but don't export it.
+IMAGE=${D}
# Turn of extended glob matching so that g++ doesn't get incorrectly matched.
shopt -u extglob
filemode=060, filemask=0)
return retval
elif mydo == "preinst":
- mysettings["IMAGE"] = mysettings["D"]
phase_retval = spawn(" ".join((EBUILD_SH_BINARY, mydo)),
mysettings, debug=debug, free=1, logfile=logfile)
if phase_retval == os.EX_OK:
if phase_retval != os.EX_OK:
writemsg("!!! post preinst failed; exiting.\n",
noiselevel=-1)
- del mysettings["IMAGE"]
return phase_retval
elif mydo == "postinst":
mysettings.load_infodir(mysettings["O"])