https://qa.mandrakesoft.com/show_bug.cgi?id=778
Product: urpmi
Component: program
Summary: urpmi.update -a fails if there is no synthesis.hdlist.*
Version: 4.2-5mdk
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: major
Priority: P2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
If I did urpmi.update -a and did not have synthesis* the following happened:
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 1
(x86) (cdrom1).cz]
examining hdlist file [/var/lib/urpmi/]
problem reading synthesis file ...
In urpm.pm in update_media I changed the $_ (shown) to $medium to make it work.
$urpm->{log}(_("examining synthesis file [%s]",
"$urpm->{statedir}/synthesis.$medium->{hdlist}"));
eval { ($medium->{start}, $medium->{end}) =
$urpm->parse_synthesis("$urpm->{statedir}/synthesis.$medium->{hdlist}") };
unless (defined $medium->{start} && defined $medium->{end}) {
$urpm->{log}(_("examining hdlist file [%s]",
"$urpm->{statedir}/$_->{hdlist}"));
eval { ($_->{start}, $_->{end}) =
$urpm->parse_hdlist("$urpm->{statedir}/$_->{hdlist}", packing => 1) };
unless (defined $medium->{start} && defined $medium->{end}) {
#- this is almost a fatal error, ignore it by default?
$urpm->{error}(_("problem reading synthesis file of medium
\"%s\"", $medium->{name}));
$medium->{ignore} = 1;
}
}
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.