Summary: | ports-mgmt/pkg chef regression: exit code is 1 instead of 70 for info when package does not exist | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Pavel Merdin <fbug> |
Component: | Individual Port(s) | Assignee: | freebsd-pkg (Nobody) <pkg> |
Status: | Closed Works As Intended | ||
Severity: | Affects Only Me | CC: | fbug, jamie |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(pkg) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Pavel Merdin
2021-01-10 17:42:18 UTC
a# pkg --version; pkg info pyjamas; echo $? 1.16.1 pkg: No package(s) matching pyjamas 1 b# pkg --version; pkg info pyjamas; echo $? 1.15.10 pkg: No package(s) matching pyjamas 70 * freebsd_package[mc] action remove ================================================================================ Error executing action `remove` on resource 'freebsd_package[mc]' ================================================================================ Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0, 70], but received '1' ---- Begin output of ["pkg", "info", "mc"] ---- STDOUT: STDERR: pkg: No package(s) matching mc ---- End output of ["pkg", "info", "mc"] ---- Ran ["pkg", "info", "mc"] returned 1 I missed that ticket, exit code have been changed, to saner model on purpose. It was part of the release note. |