pkgid = zpm_findpkg(&zpm, pkgstr);
if (pkgid) {
if (zpm_script_hash(&zpm, pkgid, phase, hash)) {
+ /* since the script file name doesn't really
+ * mean anything, pass in the phase as arg 0
+ */
- /* perhaps also pass in the phase name? or ENV? */
/* TODO sanitize environment ? */
- args[0] = script;
+ args[0] = phase;
args[1] = pkgid;
args[2] = 0;
args[3] = 0;