I sometimes used to use:

    "when"  => (repos_changed? ? [ :installation, :update, :autoinst ] : [ ])

but that's a detail