aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-03 14:42:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-03 14:42:35 +0000
commit3e770ce3b9b9cb1824b6171d9d501c393e8649c4 (patch)
treef8cf0683ae5fb82bf145c31bb852ec706dd8563e
parent7e3ad7365d99b7e8b03c5d3a75d846d9e7ec8dda (diff)
downloadperl-URPM-3e770ce3b9b9cb1824b6171d9d501c393e8649c4.tar
perl-URPM-3e770ce3b9b9cb1824b6171d9d501c393e8649c4.tar.gz
perl-URPM-3e770ce3b9b9cb1824b6171d9d501c393e8649c4.tar.bz2
perl-URPM-3e770ce3b9b9cb1824b6171d9d501c393e8649c4.tar.xz
perl-URPM-3e770ce3b9b9cb1824b6171d9d501c393e8649c4.zip
- add $trans->Element_version and $trans->Element_release
-rw-r--r--NEWS3
-rw-r--r--URPM.xs20
2 files changed, 22 insertions, 1 deletions
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
@@ -2932,6 +2932,26 @@ Trans_Element_name(trans, index)
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
int index