From a71a7307262a77cb636889eaefd64b8174566e19 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 27 Apr 2007 12:31:32 +0000 Subject: - 1.61 - 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) --- NEWS | 8 ++++++++ URPM.pm | 2 +- URPM.xs | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) 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 #include #include +#include #include #include #include @@ -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 -- cgit v1.2.1