Bug 6402 - urpmi: fix error message in case of post-script failure
: urpmi: fix error message in case of post-script failure
Status: VERIFIED FIXED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-02 15:49 MSK by Denis Silakov
Modified: 2015-12-07 18:24 MSK (History)
1 user (show)

See Also:
RPM Package:
ISO-related:
Bad POT generating:
Upstream:
vladimir.potapov: qa_verified+
denis.silakov: published+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Silakov 2015-12-02 15:49:17 MSK
Sometime urpmi fails to correctly form error message when package scriptlet fails during package removal, e.g.:

$ sudo urpme links
removing links-2.10-1-rosa2014.1.x86_64
removing package links-2.10-1.x86_64
      1/1: removing links-2.10-1.x86_64
                                 ################################################################################################################################################################################
update-alternatives: error: no alternatives for links
Can't call method "fullname" on an undefined value at /usr/lib/perl5/vendor_perl/5.18.2/urpm/install.pm line 316.
Comment 1 Denis Silakov 2015-12-02 15:50:41 MSK
Advisory:
Fixed error message in urpmi in case of post-script failure.

Build lists:
https://abf.io/build_lists/2603383
https://abf.io/build_lists/2603384

Note for testers:
in the example with links, urpmi should now print smth like the following:

ERROR: 'script' failed: 
error: %trigger(links-2.10-1.x86_64) scriptlet failed, exit status 2
Comment 2 Vladimir Potapov 2015-12-02 18:49:45 MSK
The update is sent to expanded testing
***************************************
Comment 3 Vladimir Potapov 2015-12-07 18:11:24 MSK
urpmi-7.32.3-43
https://abf.io/build_lists/2603383
https://abf.io/build_lists/2603384
*************************** Advisory ******************************
Fixed error message in urpmi in case of post-script failure.
*******************************************************************
QA Verified