Comment 3 for bug 448619

Revision history for this message
Terence Simpson (tsimpson) wrote : Re: Info plugin doesn't provide a way to get further info

Currently when apt-file is not installed (or some strange error happens with apt-file), and !find is used, the bot will post a link to packages.ubuntu.com with the term filled in. So that part works now. The only issue is that the repositories are dynamically detected at load time, so there's no way to tell what repositories will be enabled until the plugin is run. Also the naming of the repositories is arbitrary, the plugin just looks for *.list files in a specified directory. While for ubottu we can control this naming convention and tell if a repository has a URL for package info, for other users we can't.
I don't really want to add ubottu specific code to the plugins (there's enough of that already), but there should be a way of doing this portably. Right now I'm thinking that maybe there should be a .<repository>url (?) file accompanying the .list, if it exists then that can be read and an URL assigned to a repository. But if anyone has a better/different idea, I'd like to hear it.