diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-04-27 12:31:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-04-27 12:31:32 +0000 |
commit | a71a7307262a77cb636889eaefd64b8174566e19 (patch) | |
tree | 1f36bcedbf66a7d96dda28998120bd2dc00d7f1c /URPM.xs | |
parent | 6329fc761cd5bb9b8fe8ce2a475f23459cfd30a6 (diff) | |
download | perl-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)
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 |