On Thu, 08 Jun 2000, Guillaume Cottenceau wrote:
> Hi,
>
> About a month ago, a lot of you who tried to compile your own Mandrake
> installation had problems: after the scan for available packages, you had
> this error:
>
> ``desplist.ordered mismatch against hdlist files''
>
>
> For any of you still interested in this issue, here is how I fixed the
> problem, expecting the same problem :
>
> Ctrl+Alt+F3 will show you the faulting packages; most of the time it's
> when the true name of the package (as reported with "rpm -qpi") mismatch
> with the filename of the package.
Umm, okay, but how did you fix it? Do you need to remake the RPM (with a
corrected spec file) or simply rename the RPM? Won't renaming the RPM
cause other problems (like package X depends on package Y but we just
renamed package Y to Z)? Of course, that might not come up, depending on
which packages have the error...
If this is the cause of the error, rather than attempting an install and
seeing where the error occurs, it'd probably be easier to check the
package name/RPM name correspondence before burning.
#!/bin/bash
cd /exports/mirrors/Mandrake/cooker/Mandrake/RPMS
for file in *.rpm
do
rpm -qpi $file | gawk -v FN=$file \
'{if ( $3 != substr(FN, 1, length($3)) ) print $3, FN; exit}'
done