| Summary: | Can't locate object method "progress" via package "gurpm::RPMProgressDialog" | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Laurent Boivin <elbeho> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | bittwister2, brtians1, djmarian4u, jim.beard, zen25000 |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | rpmdrake | CVE: | |
| Status comment: | |||
|
Description
Laurent Boivin
2013-03-20 23:24:38 CET
After investigations /usr/lib/perl5/vendor_perl/5.16.3/Rpmdrake/pkg.pm calls gurpm::RPMProgressDialog::progess() instead of gurpm::RPMProgressDialog::set_progressbar() Quick and dirty fix: adding a sub gurpm::RPMProgressDialog::progess() thats just call gurpm::RPMProgressDialog::set_progressbar() workaround the issue. Clean patch would probably imply changing all the calls to gurpm::RPMProgressDialog::progess() to gurpm::RPMProgressDialog::set_progressbar() HTH. Kind Regards Laurent Source RPM:
(none) =>
gurpmi-7.20-1.mga3 See also thread in ML https://www.mageia.org/pipermail/mageia-dev/2013-March/023649.html CC:
(none) =>
zen25000
Manuel Hiebel
2013-03-21 00:00:36 CET
Assignee:
bugsquad =>
thierry.vignaud [Patch suggestion... WARNING: not fully tested! ] gurpm::RPMProgressDialog looks use-d only in Rpmdrake::pkg, so less dirty patch: diff pkg.pm.original pkg.pm 216c216 < $gurpm->progress($percent/100); --- > $gurpm->set_progressbar($percent/100); 218c218 < $gurpm->progress(1); --- > $gurpm->set_progressbar(1); 817c817 < check_sig => sub { $gurpm->progress(++$progress/$total) }, --- > check_sig => sub { $gurpm->set_progressbar(++$progress/$total) }, 945c945 < $gurpm->progress(min(0.99, scalar($progress/@toremove))); --- > $gurpm->set_progressbar(min(0.99, scalar($progress/@toremove))); With that : MageiaUpdate works rpmdrake (GUI) works Limited tests only. Cheers Laurent Fixed in git Status:
NEW =>
RESOLVED For those stuck with rpmdrake error, just run "urpmi --auto-update" as root in a terminal Or "urpmi.update -a; gurpmi --auto-select" if you prefer to have a GUI |