aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-16 21:39:16 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-16 21:39:16 +0000
commit2eb9a8ecab19d4648a3deea82a0bd18104c48109 (patch)
tree7b2bf38ec80082afacf308956adf62ed2543b5d9
parentc67675b92cedd601de52a6f1999995bc23e07834 (diff)
downloadperl-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
-rw-r--r--URPM.xs5
1 files changed, 1 insertions, 4 deletions
diff --git a/URPM.xs b/URPM.xs
index 4825cfd..d7dd26c 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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);
}