Bug 28701

Summary: postinstall scriptlet error leaves multiple versions of same package installed.
Product: Mageia Reporter: Dave Hodgins <davidwhodgins>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: NEW --- QA Contact:
Severity: major    
Priority: Normal CC: fri
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA8TOO MGA7TOO
Source RPM: rpm-4.16.1.3-1.1.mga9.src.rpm CVE:
Status comment:

Description Dave Hodgins 2021-04-02 05:49:11 CEST
As demonstrated in bug 28419 a postinstall scriptlet that relies on a service
such as cups being running, will fail during an upgrade or fresh install done
using an iso with online media added (online media only being needed as in this
case, boomaga is not on any of the Mageia iso images).

In the case of an upgrade, since both scriplets fail, the printer is left defined
in cups, but multiple versions of boomaga are listed as installed by rpm.

The only indication the user has is the message(s) about the scriptlet failing.

While the printer adding/removal is a problem for the boomaga package, the
result of having multiple versions of the boomaga installed after the error
is a problem with rpm itself.

If a postinstall scriptlet fails, since it is after installation, that should not
stop rpm from removing the old package from the installed list.
Dave Hodgins 2021-04-02 05:49:35 CEST

Whiteboard: (none) => MGA8TOO MGA7TOO
Severity: critical => major

Morgan Leijström 2021-04-02 12:05:25 CEST

CC: (none) => fri