Closed iainlane closed 8 years ago
This is one of the reasons that gnome-weather is broken in Ubuntu - we can't find the icon since it's in Universe. The other reason is as I mentioned on IRC - you skip it because the filename contains a '.'
Did you test if this works with the Debian/Ubuntu contents files?
Ah, and the if '/' in group_pkg:
must remain there since sometimes the section part is missing (seen in Debian and some 3rd-party repos)
You still want the last component then right? Look at the ipython output I gave above - if there's no '/' then you just get the whole string. Is that right?
I tested on Ubuntu but not a full run, that takes ages. If merged I will drop all packages with icon errors and see what happens then.
Indeed, I was reading too quickly there... I wonder why the check was there in the first place then... Anyway, looks good to me and shouldn't break stuff, I'll test on Debian soon, just to be sure.
For non-main, ubuntu "location" components are in the form component/section/package - we're only interested in the last.
AFAICS Debian is always section/package - but the same code should work there too, unless I'm missing something.