Просмотр исходного кода

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 лет назад: 15
Родитель
Сommit
88e1cf242f
1 измененных файлов с 2 добавлено и 2 удалено
  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,
 		    strsignal(n), WCOREDUMP(status) ? _(", core dumped") : "");
 	} 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;