maintainer-feedback requested: [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:18 UTC 2021


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg at FreeBSD.org> for maintainer-feedback:
Bug 252560: ports-mgmt/pkg regression: exit code is 1 instead of 70 for info
when package does not exist
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252560



--- Description ---
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/pkgn
g.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


More information about the freebsd-pkg mailing list