havescripts
if (trans->transaction_installed[p - installed->start] && !havescripts(pool, p))
if (havescripts(pool, od->tes[cycle[l]].p) && !havescripts(pool, od->tes[cycle[k]].p))
if (havescripts(pool, p))