maintainer-feedback requested: [Bug 252125] ports-mgmt/pkg 1.16 wrong exit code on removing non-existent package

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 25 06:57:45 UTC 2020


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg at FreeBSD.org> for maintainer-feedback:
Bug 252125: ports-mgmt/pkg 1.16 wrong exit code on removing non-existent
package
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252125



--- Description ---
Hello.
This change is unexpected and breaks automated workflows, since before 1.16
exit code 65 could be treated as success for package removal.

    host1# pkg -v
    1.15.10
    test-ansible-11# pkg remove nonexistent
    No packages matched for pattern 'nonexistent'

    Checking integrity... done (0 conflicting)
    1 packages requested for removal: 0 locked, 1 missing
    host1# echo $?
    65


    host2# pkg -v
    1.16.0
    host2# pkg remove nonexistent
    No packages matched for pattern 'nonexistent'

    Checking integrity... done (0 conflicting)
    1 packages requested for removal: 0 locked, 1 missing
    host2# echo $?
    1


More information about the freebsd-pkg mailing list