aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-18 17:20:31 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-18 17:20:31 +0000
commitf7e8feba9f045913023495097afad4bd88890f25 (patch)
tree1cec88bfe0a2ffac96a1764e9484a87963a55192 /URPM.xs
parentbca0c167d57fde13ca5858b746bddb87bb628156 (diff)
downloadperl-URPM-f7e8feba9f045913023495097afad4bd88890f25.tar
perl-URPM-f7e8feba9f045913023495097afad4bd88890f25.tar.gz
perl-URPM-f7e8feba9f045913023495097afad4bd88890f25.tar.bz2
perl-URPM-f7e8feba9f045913023495097afad4bd88890f25.tar.xz
perl-URPM-f7e8feba9f045913023495097afad4bd88890f25.zip
(buildtime,get_tag) simplify
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs16
1 files changed, 4 insertions, 12 deletions
diff --git a/URPM.xs b/URPM.xs
index 5c5d309..476253e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1530,12 +1530,9 @@ Pkg_buildtime(pkg)
ALIAS:
installtid = 1
CODE:
- if (pkg->h) {
- if (ix == 1)
- RETVAL = get_int(pkg->h, RPMTAG_INSTALLTID);
- else
- RETVAL = get_int(pkg->h, RPMTAG_BUILDTIME);
- } else
+ if (pkg->h)
+ RETVAL = get_int(pkg->h, ix == 1 ? RPMTAG_INSTALLTID : RPMTAG_BUILDTIME);
+ else
RETVAL = 0;
OUTPUT:
RETVAL
@@ -2065,12 +2062,7 @@ Pkg_files(pkg)
conf_files = 1
PPCODE:
PUTBACK;
- int filter_mode;
- if (ix == 0)
- filter_mode = 0;
- else
- filter_mode = FILTER_MODE_CONF_FILES;
- return_files(pkg->h, filter_mode);
+ return_files(pkg->h, ix == 0 ? 0 : FILTER_MODE_CONF_FILES);
SPAGAIN;
void