Bug 18861

Summary: manatools mana update logs about download rate that argument is not numeric
Product: Mageia Reporter: Morgan Leijström <fri>
Component: RPM PackagesAssignee: Angelo Naselli <anaselli>
Status: RESOLVED OLD QA Contact:
Severity: minor    
Priority: Normal CC: matteo.pasotti
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: manatools-1.1.3-2.mga6.src.rpm CVE:
Status comment:

Description Morgan Leijström 2016-07-05 10:19:50 CEST
Launching # mana update in konsole, i see it complains about what seem to be interpreting current download rate:

hämtar RPM-filer från media "Core Release"...
Argument "204k" isn't numeric in numeric eq (==) at
        /usr/lib/perl5/vendor_perl/5.22.2/urpm/download.pm line 542, <$curl> chunk 792 (#3)
Argument "14.0M" isn't numeric in numeric eq (==) at
        /usr/lib/perl5/vendor_perl/5.22.2/urpm/download.pm line 542, <$curl> chunk 1031 (#3)
Morgan Leijström 2016-07-05 10:20:42 CEST

Assignee: bugsquad => anaselli

Angelo Naselli 2016-07-05 13:01:55 CEST

CC: (none) => matteo.pasotti

Comment 1 Angelo Naselli 2016-07-05 13:35:28 CEST
I have some problem in understanding that, I saw it too, I probably need help there. I don't know if it's a urpm callback that does not manage those values correctly -and so need to change my code- or the download.pm behavior that changed.

Looking at download.pm 542 line (http://gitweb.mageia.org/software/rpm/urpmi/tree/urpm/download.pm#n542) it seems that $speed is managed as integer:
if ($_ eq "\n" && !($speed == 0 && $percent == 100 && index($eta, '--') >= 0)
 #- work around bug 13685

In mageia 5 the line was
if ($_ eq "\n" && !($speed eq 0 && $percent == 100 && index($eta, '--') >= 0)

so managed as string but i'm not sure correctly though.

Maybe tv can give me some more information on this problem?
Comment 2 sturmvogel 2023-01-20 19:27:18 CET
Manatools got obsoleted and will be no longer shipped with Mageia (starting with MGA9) as the upstream development stopped.

From  task-obsolete-9-93.mga9:
# (ngompa) 2021-04-05
667	# Upstream development has stopped
668	Obsoletes: manatools < 1.2.2-2
669	Obsoletes: manatools-common < 1.2.2-2
670	Obsoletes: manatools-extra < 1.2.2-2
671	Obsoletes: manatools-gtk < 1.2.2-2
672	Obsoletes: manatools-qt < 1.2.2-2


Closing this bug as OLD.

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