ソースを参照

dpkg-deb: Use warning() instead of ad-hoc printing

Guillem Jover 17 年 前
コミット
b471b6bcd7
共有1 個のファイルを変更した2 個の追加4 個の削除を含む
  1. 2 4
      dpkg-deb/build.c

+ 2 - 4
dpkg-deb/build.c

@@ -351,10 +351,8 @@ void do_build(const char *const *argv) {
     } else if (errno != ENOENT) {
     } else if (errno != ENOENT) {
       ohshite(_("error opening conffiles file"));
       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");
   if (ferror(stdout)) werr("stdout");