The following commit has been merged in the master branch:
commit b471b6bcd7c8d1513558fa3f0ef1411115df9a93
Author: Guillem Jover <[email protected]>
Date: Sun Sep 6 06:33:52 2009 +0200
dpkg-deb: Use warning() instead of ad-hoc printing
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 5969c92..9be1fa9 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -351,10 +351,8 @@ void do_build(const char *const *argv) {
} else if (errno != ENOENT) {
ohshite(_("error opening conffiles file"));
}
- if (warns) {
- if (fprintf(stderr, _("dpkg-deb: ignoring %d warnings about the control"
- " file(s)\n"), warns) == EOF) werr("stderr");
- }
+ if (warns)
+ warning(_("ignoring %d warnings about the control file(s)\n"), warns);
}
if (ferror(stdout)) werr("stdout");
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]