Open lukash opened 3 years ago
I should also note the repo appeared to load fine on the first dnf run and failed to load on the subsequent ones. Details are in the bugzilla. I've also tried the repomdxml2solv
tool, but it's giving me some binary garbage on the output and exits with 0, seems to be quirky. I'm not having much time for this but hopefully it's enough for you to have a look.
Just a quick note. I think you have to pipe the output of repomdxml2solv
to dumpsolv
to get readable output. It seems to work fine for me even with the snippet without outer xml tags.
@kontura thanks, I've missed that. Yeah thinking about it the issue isn't likely that straightforward, but there must be another problem with the repodata causing this. As a side note, libsolv shouldn't be working with broken xml contents outright, as ultimately it can lead to all kinds of cryptic errors.
Original report: https://bugzilla.redhat.com/show_bug.cgi?id=1862204
Malformed repository: https://drive.google.com/file/d/1YHWJhhFFQPYfJ_bSEauF2Adzo040uKeL/view?usp=sharing
The repository, when loaded with dnf, doesn't raise an error when loaded the first time, but fails to load the second time. Arguably dnf just eats the error messages from libsolv and its messages are bad as well, but according to the debugging the reporter has done (I haven't tried to get to the exact libsolv error myself), libsolv doesn't properly report the malformed xml errors either.
The issue with the repodata is it's missing the outer xml tags, e.g. other.xml - malformed repo:
Valid other.xml for the repo: