https://bugs.kde.org/show_bug.cgi?id=468059

            Bug ID: 468059
           Summary: pkcon incorrect error response on update (no packages
                    updated).
    Classification: KDE Neon
           Product: neon
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Packages User Edition
          Assignee: neon-b...@kde.org
          Reporter: joe.vaug...@gmail.com
                CC: j...@jriddell.org, neon-b...@kde.org, sit...@kde.org
  Target Milestone: ---

SUMMARY
KDE Neon 'pkcon update' command returns incorrect status/error code when
nothing is installed/updated. 

STEPS TO REPRODUCE
1.  sudo /usr/bin/pkcon refresh -p
2.  sudo /usr/bin/pkcon update -yp

OBSERVED RESULT
'pkcon update' returns non-zero (error code: 5) if no packages are updated. 
This is incorrect behaviour as this is not an error but a normal response.

Note: 'pkcon refresh' correctly returns 0 if no updates are applied to
repository caches. 

EXPECTED RESULT

On any *NIX operating system a non-zero exit code indicates that some error
occurred. 

No error has occurred in this instance, simply no updates to be applied (which
isn't an error)
A successfully executing command should return status code 0. 

Therefore 'pkcon update' should return 0 as it is executing successfully even
if no packages are updated. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.27
KDE Plasma Version:  5.27.3
KDE Frameworks Version:  5.10.4.0
Qt Version: 5.15.8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to