Browse Source

dpkg-deb: Promote a print to a warning for missing control files

Guillem Jover 8 years ago
parent
commit
829326ae59
2 changed files with 2 additions and 1 deletions
  1. 1 0
      debian/changelog
  2. 1 1
      dpkg-deb/info.c

+ 1 - 0
debian/changelog

@@ -69,6 +69,7 @@ dpkg (1.18.5) UNRELEASED; urgency=medium
     - <new-preinst> upgrade <old-version> <new-version>
     - <new-prerm> failed-upgrade <old-version> <new-version>
     Prompted by Andrey Utkin <andrey.krieger.utkin@gmail.com>.
+  * Promote a print to a warning for missing control files in dpkg-deb.
   * Portability:
     - Move DPKG_ADMINDIR environment variable name out from update-alternatives
       code, to make life easier for non-dpkg-based systems.

+ 1 - 1
dpkg-deb/info.c

@@ -175,7 +175,7 @@ info_list(const char *debar, const char *dir)
   if (!cc) {
     if (errno != ENOENT)
       ohshite(_("failed to read '%.255s' (in '%.255s')"), CONTROLFILE, dir);
-    fputs(_("(no 'control' file in control archive!)\n"), stdout);
+    warning(_("no 'control' file in control archive!"));
   } else {
     lines= 1;
     while ((c= getc(cc))!= EOF) {