diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-16 21:39:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-10-16 21:39:16 +0000 |
commit | 2eb9a8ecab19d4648a3deea82a0bd18104c48109 (patch) | |
tree | 7b2bf38ec80082afacf308956adf62ed2543b5d9 /URPM.xs | |
parent | c67675b92cedd601de52a6f1999995bc23e07834 (diff) | |
download | perl-URPM-2eb9a8ecab19d4648a3deea82a0bd18104c48109.tar perl-URPM-2eb9a8ecab19d4648a3deea82a0bd18104c48109.tar.gz perl-URPM-2eb9a8ecab19d4648a3deea82a0bd18104c48109.tar.bz2 perl-URPM-2eb9a8ecab19d4648a3deea82a0bd18104c48109.tar.xz perl-URPM-2eb9a8ecab19d4648a3deea82a0bd18104c48109.zip |
(Urpm_verify_rpm) simplify
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); } |