Date: Sun, 10 Jan 2021 17:42:18 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 252560] ports-mgmt/pkg regression: exit code is 1 instead of 70 for info when package does not exist Message-ID: <bug-252560-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252560 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@FreeBSD.org Reporter: fbug@merdin.com Assignee: pkg@FreeBSD.org Flags: maintainer-feedback?(pkg@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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252560-32340>