This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
commit e512a2cbae3727d2ede9060944bb532d998b3c00 Author: Guillem Jover <[email protected]> Date: Sat Feb 14 23:56:25 2015 +0100 dpkg: Use dpkg_error_print() instead of explicitly printing a dpkg_error --- src/enquiry.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/enquiry.c b/src/enquiry.c index 6695bbf..7239c67 100644 --- a/src/enquiry.c +++ b/src/enquiry.c @@ -660,10 +660,7 @@ cmpversions(const char *const *argv) if (*argv[0] && strcmp(argv[0],"<unknown>")) { if (parseversion(&a, argv[0], &err) < 0) { - if (err.type == DPKG_MSG_WARN) - warning(_("version '%s' has bad syntax: %s"), argv[0], err.str); - else - ohshit(_("version '%s' has bad syntax: %s"), argv[0], err.str); + dpkg_error_print(&err, _("version '%s' has bad syntax"), argv[0]); dpkg_error_destroy(&err); } } else { @@ -671,10 +668,7 @@ cmpversions(const char *const *argv) } if (*argv[2] && strcmp(argv[2],"<unknown>")) { if (parseversion(&b, argv[2], &err) < 0) { - if (err.type == DPKG_MSG_WARN) - warning(_("version '%s' has bad syntax: %s"), argv[2], err.str); - else - ohshit(_("version '%s' has bad syntax: %s"), argv[2], err.str); + dpkg_error_print(&err, _("version '%s' has bad syntax"), argv[2]); dpkg_error_destroy(&err); } } else { -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/dpkg/dpkg.git -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

