diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -3125,10 +3125,7 @@ Urpm_verify_rpm(filename, ...) ts = rpmtsCreate(); rpmtsSetRootDir(ts, "/"); rpmtsOpenDB(ts, O_RDONLY); - if (rpmVerifySignatures(&qva, ts, fd, filename)) - RETVAL = 0; - else - RETVAL = 1; + RETVAL = rpmVerifySignatures(&qva, ts, fd, filename) ? 0 : 1; Fclose(fd); (void)rpmtsFree(ts); } |