aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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