diff options
author | Guillem Jover <guillem@debian.org> | 2014-10-19 14:02:07 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-10-20 14:52:10 +0200 |
commit | 17630063debf3183b61bd82fddd2bed484e0c954 (patch) | |
tree | 2de4c3944479c371a3ebc380666c6f00f8f9d248 /src | |
parent | 1f57f1f06c7fe1cbcdaa1242049b7b23aa9135aa (diff) | |
download | dpkg-17630063debf3183b61bd82fddd2bed484e0c954.tar.gz |
dpkg: Reverse --verify-format logic to accept 'rpm' as valid
Closes: #765907
Diffstat (limited to 'src')
-rw-r--r-- | src/main.h | 2 | ||||
-rw-r--r-- | src/verify.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main.h b/src/main.h index a20513ff0..57854277f 100644 --- a/src/main.h +++ b/src/main.h @@ -178,7 +178,7 @@ int cmpversions(const char *const *argv); /* from verify.c */ -int verify_set_output(const char *name); +bool verify_set_output(const char *name); int verify(const char *const *argv); /* from select.c */ diff --git a/src/verify.c b/src/verify.c index 9d871329b..9e32f163a 100644 --- a/src/verify.c +++ b/src/verify.c @@ -81,15 +81,15 @@ verify_output_rpm(struct filenamenode *namenode, struct verify_checks *checks) static verify_output_func *verify_output = verify_output_rpm; -int +bool verify_set_output(const char *name) { if (strcmp(name, "rpm") == 0) verify_output = verify_output_rpm; else - return 1; + return false; - return 0; + return true; } static void |