diff options
-rw-r--r-- | NEWS | 8 | ||||
-rw-r--r-- | URPM.pm | 2 | ||||
-rw-r--r-- | URPM.xs | 19 |
3 files changed, 28 insertions, 1 deletions
@@ -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 @@ -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); @@ -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 |