aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs14
1 files changed, 14 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 465ed14..0b31798 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2584,6 +2584,20 @@ Trans_add(trans, pkg, ...)
OUTPUT:
RETVAL
+#ifdef RPM4_12_0
+int
+Trans_addReinstall(trans, pkg)
+ URPM::Transaction trans
+ URPM::Package pkg
+ CODE:
+ if ((pkg->flag & FLAG_ID_MASK) <= FLAG_ID_MAX && pkg->h != NULL)
+ RETVAL = rpmtsAddReinstallElement(trans->ts, pkg->h, (fnpyKey)(1+(long)(pkg->flag & FLAG_ID_MASK))) == 0;
+ else RETVAL = 0;
+ OUTPUT:
+ RETVAL
+
+#endif
+
int
Trans_remove(trans, name)
URPM::Transaction trans