aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS8
-rw-r--r--URPM.pm2
-rw-r--r--URPM.xs19
3 files changed, 28 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index f0bc984..0f48de6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,11 @@
+Version 1.61 - 3 April 2007, by Pascal "Pixel" Rigaux
+
+- add $trans->NElements and $trans->Element_name
+ to be able to display name of uninstalled package in callback_uninst
+- fix b--obsoletes-->a and c--conflicts-->a prompting for upgrading a
+ (need a fix in urpmi which rely on the $state->{rejected}
+ to upgrade (-U) b instead of installing (-i) it)
+
Version 1.60 - 8 March 2007, by Pascal "Pixel" Rigaux
- more debugging hooks
diff --git a/URPM.pm b/URPM.pm
index da97f46..e19a0a3 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -10,7 +10,7 @@ use URPM::Resolve;
use URPM::Signature;
our @ISA = qw(DynaLoader);
-our $VERSION = '1.60';
+our $VERSION = '1.61';
URPM->bootstrap($VERSION);
diff --git a/URPM.xs b/URPM.xs
index 771f0db..5d6d7b1 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -35,6 +35,7 @@
#include <rpm/rpmio.h>
#include <rpm/rpmdb.h>
#include <rpm/rpmts.h>
+#include <rpm/rpmte.h>
#include <rpm/rpmps.h>
#include <rpm/rpmpgp.h>
#include <rpm/rpmcli.h>
@@ -2864,6 +2865,24 @@ Trans_order(trans)
}
}
+int
+Trans_NElements(trans)
+ URPM::Transaction trans
+ CODE:
+ RETVAL = rpmtsNElements(trans->ts);
+ OUTPUT:
+ RETVAL
+
+char *
+Trans_Element_name(trans, index)
+ URPM::Transaction trans
+ int index
+ CODE:
+ rpmte te = rpmtsElement(trans->ts, index);
+ RETVAL = te ? (char *) rpmteN(te) : NULL;
+ OUTPUT:
+ RETVAL
+
void
Trans_run(trans, data, ...)
URPM::Transaction trans