Bug 26393 - links: triggerpostun scriptlet fails when uninstalling
Summary: links: triggerpostun scriptlet fails when uninstalling
Status: REOPENED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-30 19:08 CEST by Jani Välimaa
Modified: 2020-04-06 10:58 CEST (History)
0 users

See Also:
Source RPM: links-2.20.2-3.mga8
CVE:
Status comment:


Attachments

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)


Note You need to log in before you can comment on or make changes to this bug.