[Bug 252560] ports-mgmt/pkg regression: exit code is 1 instead of 70 for info when package does not exist
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 10 17:42:19 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252560
Bug ID: 252560
Summary: ports-mgmt/pkg regression: exit code is 1 instead of
70 for info when package does not exist
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: pkg at FreeBSD.org
Reporter: fbug at merdin.com
Assignee: pkg at FreeBSD.org
Flags: maintainer-feedback?(pkg at FreeBSD.org)
It looks like pkg started returning exit code 1 for 'info package' when the
package does not exists. Previous versions used to return 70 in the same
situation.
This seems to break chef automation as chef code expects either 0 or 70:
https://github.com/chef/chef/blob/master/lib/chef/provider/package/freebsd/pkgng.rb#L45
It looks like there is a bug #252125 which reports a similar issue with exit
code, but in a different case.
I wonder if exit codes were somehow broken in the last release
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-pkg
mailing list