Bug 26393

Summary: links: triggerpostun scriptlet fails when uninstalling
Product: Mageia Reporter: Jani Välimaa <jani.valimaa>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: links-2.20.2-3.mga8 CVE:
Status comment:

Description Jani Välimaa 2020-03-30 19:08:40 CEST
$ rpm -qa links*
links-common-2.20.2-3.mga8
links-2.20.2-3.mga8

$ rpm -q --scripts links
postinstall scriptlet (using /bin/sh):
update-alternatives --install /usr/bin/links links /usr/bin/links-text 10
postuninstall scriptlet (using /bin/sh):
if [ "$1" = "0" ]; then
  update-alternatives --remove links /usr/bin/links-text
fi

$ rpm -q --triggers links
triggerpostun scriptlet (using /bin/sh) -- links
if [ ! -e /usr/bin/links ]; then
  update-alternatives --auto links
fi

$ sudo urpme links
removing links-2.20.2-3.mga8.x86_64
removing package links-2.20.2-3.mga8.x86_64
      1/1: removing links-2.20.2-3.mga8.x86_64
                                 #################################################################
warning: %triggerpostun(links-2.20.2-3.mga8.x86_64) scriptlet failed, exit status 2
ERROR: 'script' failed for links-2.20.2-3.mga8.x86_64
Comment 1 Thierry Vignaud 2020-03-31 14:59:14 CEST
Fixed

Resolution: (none) => FIXED
Status: NEW => RESOLVED
CC: (none) => thierry.vignaud

Comment 2 Jani Välimaa 2020-03-31 16:07:55 CEST
Still valid with links-2.20.2-4.mga8.

$ rpm -qa links*
links-common-2.20.2-4.mga8
links-2.20.2-4.mga8

$ sudo urpme links
removing links-2.20.2-4.mga8.x86_64
removing package links-2.20.2-4.mga8.x86_64
      1/1: removing links-2.20.2-4.mga8.x86_64
                                 #################################################################
warning: %triggerpostun(links-2.20.2-4.mga8.x86_64) scriptlet failed, exit status 2
ERROR: 'script' failed for links-2.20.2-4.mga8.x86_64

Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Comment 3 Lewis Smith 2020-04-06 10:58:36 CEST
Back to you, Thierry.

Assignee: bugsquad => thierry.vignaud
CC: thierry.vignaud => (none)