Bug 1408 - mgaonline - scriptlet (%post) fail warning during install
Summary: mgaonline - scriptlet (%post) fail warning during install
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 12:53 CEST by Barry Jackson
Modified: 2011-05-24 22:19 CEST (History)
0 users

See Also:
Source RPM: mgaonline-2.77.26-2.mga1.noarch
CVE:
Status comment:


Attachments

Description Barry Jackson 2011-05-24 12:53:32 CEST
Description of problem:
[root@jackodesktop baz]# urpmi --replacepkgs mgaonline


    ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/i586/media/core/release/mgaonline-2.77.26-2.mga1.noarch.rpm
installing mgaonline-2.77.26-2.mga1.noarch.rpm from /var/cache/urpmi/rpms                                                                  
Preparing...                     #########################################################################################################
      1/1: mgaonline             #########################################################################################################
warning: %post(mgaonline-2.77.26-2.mga1.noarch) scriptlet failed, exit status 1

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Barry Jackson 2011-05-24 13:15:40 CEST

Hardware: i586 => All

Comment 1 James Kerr 2011-05-24 13:40:33 CEST
Perhaps that's the script that runs when mgaonline is installed on a Mandriva system.

https://bugs.mageia.org/show_bug.cgi?id=1153#c51

It presumably isn't required to succeed on a Mageia system.
Comment 2 Barry Jackson 2011-05-24 17:56:07 CEST
Well running that command in %post :-

http://svnweb.mageia.org/packages/cauldron/mgaonline/current/SPECS/mgaonline.spec?r1=100058&r2=100263

on my system manually, does return 1.

It's the first grep that fails:-
grep -q pi.mandriva.com/mirror  /usr/lib/perl5/vendor_perl/5.*/urpm/mirrors.pm

not sure what it's doing, but if the next part depends on the first part failing, then maybe && should be || ? That certainly stops it failing but maybe breaks it :\
Comment 3 Ahmad Samir 2011-05-24 18:04:06 CEST
Jim is right, maybe the output should be redirected to /dev/null, so as not to alarm cauldron/mageia users... or the script should only run if it's a mandriva system (based on /etc/release).

Priority: Normal => High
Assignee: bugsquad => thierry.vignaud

Comment 4 Thierry Vignaud 2011-05-24 18:17:57 CEST
yes you can add "|| :" and bump the release and ask for submit
Comment 5 Ahmad Samir 2011-05-24 18:23:21 CEST
OK. Done.
Comment 6 Barry Jackson 2011-05-24 20:00:28 CEST
Confirmed fixed:

created transaction for installing on / (remove=0, install=0, upgrade=3)
Preparing...                     #############################################
      1/3: drakconf-icons        #############################################
      2/3: drakconf              #############################################
      3/3: mgaonline             #############################################
removing upgraded package drakconf-12.21.8-2.mga1.noarch
removing upgraded package drakconf-icons-12.21.8-2.mga1.noarch
removing upgraded package mgaonline-2.77.26-2.mga1.noarch
unlocking urpmi database
Comment 7 Ahmad Samir 2011-05-24 22:19:57 CEST
Forgot to close, but thanks for the feedback all the same.

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


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