Skip to content

Commit 394306a

Browse files
committed
lib: also internalize install-script from binary packages on reinstall
the binary package might have changed the INSTALL script, so this one has to be used instead of the one we already have.
1 parent 8c4b690 commit 394306a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/transaction_internalize.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,14 @@ xbps_transaction_internalize(struct xbps_handle *xhp, xbps_object_iterator_t ite
212212
int rv;
213213

214214
ttype = xbps_transaction_pkg_type(obj);
215-
if (ttype != XBPS_TRANS_INSTALL && ttype != XBPS_TRANS_UPDATE)
215+
switch (ttype) {
216+
case XBPS_TRANS_INSTALL:
217+
case XBPS_TRANS_UPDATE:
218+
case XBPS_TRANS_REINSTALL:
219+
break;
220+
default:
216221
continue;
217-
222+
}
218223
rv = internalize_binpkg(xhp, obj);
219224
if (rv < 0)
220225
return rv;

0 commit comments

Comments
 (0)