diff options
-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 |