First, it adds support for the change from "xmls" to "xml" folder. Second, it solves the inconsistency where AppStream components from distributions are installed in /var/lib/swcatalog while icons are not allowed in such directory, but instead installed in /var/cache/swcatalog.
@mak The specification is pretty clear about which kind of Components should go into /usr/share/swcatalog/xml and /var/lib/swcatalog/xml, but is not that specific about which icons should go into /usr/share/swcatalog/icons and which ones in /var/cache/swcatalog/icons. I assumed here that if the Components are in /var/lib/swcatalog, then the icons would be under /var/cache/swcatalog. And I will certainly implement it like that in AlpineLinux and postmarketOS. But is there a chance that this can be clarified? Or how would you suggest to proceed in this case otherwise?