From 3e770ce3b9b9cb1824b6171d9d501c393e8649c4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 3 Aug 2007 14:42:35 +0000 Subject: - add $trans->Element_version and $trans->Element_release --- NEWS | 3 ++- URPM.xs | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a974db0..4589857 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- add $trans->Element_version and $trans->Element_release + Version 1.67 - 22 June 2007, by Olivier "Nanar" Thauvin - add osscore, archscore and platformscore function to URPM @@ -5,7 +7,6 @@ Version 1.67 - 22 June 2007, by Olivier "Nanar" Thauvin - fix call to rpm function in spec2header() - fix some compilation warnings - Version 1.66 - 2 July 2007, by Pascal "Pixel" Rigaux - fix --auto-select skipping some packages because of other packages providing diff --git a/URPM.xs b/URPM.xs index c7761f6..fc30109 100644 --- a/URPM.xs +++ b/URPM.xs @@ -2931,6 +2931,26 @@ Trans_Element_name(trans, index) OUTPUT: RETVAL +char * +Trans_Element_version(trans, index) + URPM::Transaction trans + int index + CODE: + rpmte te = rpmtsElement(trans->ts, index); + RETVAL = te ? (char *) rpmteV(te) : NULL; + OUTPUT: + RETVAL + +char * +Trans_Element_release(trans, index) + URPM::Transaction trans + int index + CODE: + rpmte te = rpmtsElement(trans->ts, index); + RETVAL = te ? (char *) rpmteR(te) : NULL; + OUTPUT: + RETVAL + char * Trans_Element_fullname(trans, index) URPM::Transaction trans -- cgit v1.2.1