diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-18 17:20:31 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-18 17:20:31 +0000 |
commit | f7e8feba9f045913023495097afad4bd88890f25 (patch) | |
tree | 1cec88bfe0a2ffac96a1764e9484a87963a55192 /URPM.xs | |
parent | bca0c167d57fde13ca5858b746bddb87bb628156 (diff) | |
download | perl-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.xs | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -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 |