aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-04-27 12:31:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-04-27 12:31:32 +0000
commita71a7307262a77cb636889eaefd64b8174566e19 (patch)
tree1f36bcedbf66a7d96dda28998120bd2dc00d7f1c
parent6329fc761cd5bb9b8fe8ce2a475f23459cfd30a6 (diff)
downloadperl-URPM-a71a7307262a77cb636889eaefd64b8174566e19.tar
perl-URPM-a71a7307262a77cb636889eaefd64b8174566e19.tar.gz
perl-URPM-a71a7307262a77cb636889eaefd64b8174566e19.tar.bz2
perl-URPM-a71a7307262a77cb636889eaefd64b8174566e19.tar.xz
perl-URPM-a71a7307262a77cb636889eaefd64b8174566e19.zip
- 1.611.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)
-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