rpm-software-management / dnf5

Next-generation RPM package management system
Other
238 stars 79 forks source link

`metalink`/`repomd.xml` downloaded twice during metadata refresh #1737

Open kontura opened 1 day ago

kontura commented 1 day ago

While refreshing the metadata libdnf first checks if the metalink/repomd.xml is in sync, this does the first metalink/repomd.xml download. If the metadata are out of date the metalink/repomd.xml is downloaded again in librepo during the repodata download (when it downloads primary.xml).

Both metalink and repomd.xml are quite small but if we managed to reuse them it would be a potential optimization.