aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-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);
}