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

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252125

            Bug ID: 252125
           Summary: ports-mgmt/pkg 1.16 wrong exit code on removing
                    non-existent package
           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: vladimir-csp@yandex.ru
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

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

--=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-252125-7788>