RPM

RPM needs to commit to exit code convention

Registered by Jeff Johnson

Unlike most uglix programs, rpm executables have always
tried to return
       no. of failed objects
instead of a condition code that might be informative.

There are certain flaws, not the least of which is that only 7 bits
can be used: the days where rpm was installing <127 packages
and where the no. of failed packages was useful are ancient history now.

Keeping the count accurate when the eventual result will be truncated
in many cases has always been problematic to maintain.

Internally rpm uses RPMRC_OK/RPMRC_NOTFOUND/RPMRC_FAIL etc fairly consistently
when a return code is needed.

Since the no. of failures is rather less useful than the class of
failure (e.g. RPMRC_NOTFOUND has very different meaning than RPMRC_FAIL,
and there are other signature related return codes that are more informative
than a zero vs non-zero test when using rpm in a script.

Blueprint information

Status:
Not started
Approver:
Jeff Johnson
Priority:
Low
Drafter:
Jeff Johnson
Direction:
Approved
Assignee:
Jeff Johnson
Definition:
Pending Approval
Series goal:
Accepted for 5.4
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.