xbps-{install,remove}: print guards in post-install/pre-remove messages.
This avoids the need to manually add them to the {INSTALL,REMOVE}.msg files in binary packages, and saves some bytes in the repository archive and binary packages. Idea by @dominikh.
This commit is contained in:
@ -92,7 +92,10 @@ state_cb_rm(const struct xbps_state_cb_data *xscd, void *cbdata _unused)
|
||||
}
|
||||
break;
|
||||
case XBPS_STATE_SHOW_REMOVE_MSG:
|
||||
printf("%s: pre-remove message:\n%s", xscd->arg, xscd->desc);
|
||||
printf("%s: pre-remove message:\n", xscd->arg);
|
||||
printf("========================================================================\n");
|
||||
printf("%s", xscd->desc);
|
||||
printf("========================================================================\n");
|
||||
break;
|
||||
/* errors */
|
||||
case XBPS_STATE_REMOVE_FAIL:
|
||||
|
Reference in New Issue
Block a user