return 1;
}
- DEBUG(transaction->pakfire, "Running %s for %s\n",
- pakfire_action_type_string(action), pakfire_package_get_string(pkg, PAKFIRE_PKG_NEVRA));
+ const char* nevra = pakfire_package_get_string(pkg, PAKFIRE_PKG_NEVRA);
+ const enum pakfire_steps type = pakfire_transaction_get_step_type(transaction, pkg);
- enum pakfire_steps type = pakfire_transaction_get_step_type(transaction, pkg);
+ DEBUG(transaction->pakfire, "Running %s for %s\n", pakfire_action_type_string(action), nevra);
int r = 0;
switch (action) {
}
if (r)
- ERROR(transaction->pakfire, "Step has failed: %s\n", strerror(r));
+ ERROR(transaction->pakfire, "Step %s (%d) for %s has failed: %m\n",
+ pakfire_action_type_string(action), type, nevra);
return r;
}