Explorar el Código

libdpkg: Warn too on unknown status in subproc_check() if PROCWARN

We were erroring out even if the caller specified PROCWARN, so handle
this error case too.
Guillem Jover hace 15 años
padre
commit
88e1cf242f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/dpkg/subproc.c

+ 2 - 2
lib/dpkg/subproc.c

@@ -126,8 +126,8 @@ subproc_check(int status, const char *desc, int flags)
 		out(_("subprocess %s killed by signal (%s)%s"), desc,
 		out(_("subprocess %s killed by signal (%s)%s"), desc,
 		    strsignal(n), WCOREDUMP(status) ? _(", core dumped") : "");
 		    strsignal(n), WCOREDUMP(status) ? _(", core dumped") : "");
 	} else {
 	} else {
-		ohshit(_("subprocess %s failed with wait status code %d"),
-		       desc, status);
+		out(_("subprocess %s failed with wait status code %d"), desc,
+		    status);
 	}
 	}
 
 
 	return -1;
 	return -1;