Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jan 2021 17:42:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   maintainer-feedback requested: [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-tnrq17YpoI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252560-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-252560-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@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=3D252560



--- 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252560-32340-tnrq17YpoI>