aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs11
1 files changed, 7 insertions, 4 deletions
diff --git a/URPM.xs b/URPM.xs
index 53541dd..614d9b6 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2930,10 +2930,6 @@ Trans_run(trans, data, ...)
URPM::Transaction trans
SV *data
PREINIT:
- /* available callback:
- callback(data, 'open'|'close', id|undef)
- callback(data, 'trans'|'uninst'|'inst', id|undef, 'start'|'progress'|'stop', amount, total)
- */
struct s_TransactionData td = { NULL, NULL, NULL, NULL, NULL, 100000, data };
rpmtransFlags transFlags = RPMTRANS_FLAG_NONE;
int probFilter = 0;
@@ -2984,6 +2980,13 @@ Trans_run(trans, data, ...)
}
}
}
+ /* check macros */
+ {
+ char *repa = rpmExpand("%_repackage_all_erasures", NULL);
+ if (repa && *repa && *repa != '0')
+ transFlags |= RPMTRANS_FLAG_REPACKAGE;
+ if (repa) free(repa);
+ }
rpmtsSetFlags(trans->ts, transFlags);
rpmtsSetNotifyCallback(trans->ts, rpmRunTransactions_callback, &td);
if (rpmtsRun(trans->ts, NULL, probFilter) > 0) {