Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2020 06:57:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 252125] ports-mgmt/pkg 1.16 wrong exit code on removing non-existent package
Message-ID:  <bug-252125-32340-zEjuPThgUr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252125-32340@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@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


help

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