Skip to content

Commit

Permalink
lib: don't display package messages during transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocimier committed Sep 16, 2023
1 parent 4478378 commit 89c32af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions lib/package_configure.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,8 @@ xbps_configure_pkg(struct xbps_handle *xhp,
umask(myumask);
return rv;
}
if (rv == 0)
xbps_set_cb_state(xhp, XBPS_STATE_CONFIGURE_DONE, 0, pkgver, NULL);
xbps_set_cb_state(xhp, XBPS_STATE_CONFIGURE_DONE, 0, pkgver, NULL);

umask(myumask);
/* show install-msg if exists */
return xbps_cb_message(xhp, pkgd, "install-msg", NULL);
return 0;
}
4 changes: 0 additions & 4 deletions lib/package_remove.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ xbps_remove_pkg(struct xbps_handle *xhp, const char *pkgver, bool update)
if (state == XBPS_PKG_STATE_HALF_REMOVED)
goto purge;

/* show remove-msg if exists */
if ((rv = xbps_cb_message(xhp, pkgd, "remove-msg", NULL)) != 0)
goto out;

/* unregister alternatives */
if (update)
xbps_dictionary_set_bool(pkgd, "alternatives-update", true);
Expand Down

0 comments on commit 89c32af

Please sign in to comment.