ubuntu-bots/PackageInfo
Terence Simpson 568cc9588e Update description 2010-01-30 07:37:28 +00:00
..
README.txt PackageInfo/README.txt: Update description to show that deb-src lines are needed 2009-04-17 21:22:19 +01:00
__init__.py Update description 2010-01-30 07:37:28 +00:00
config.py Added PackageInfo plugin. 2008-10-22 18:31:40 +01:00
packages.py Remove call to getUrl(), not implemented 2009-11-25 16:33:07 +00:00
plugin.py Make sure to only call commands manually when supybot.defaultIgnore is True 2009-12-03 23:23:09 +00:00
test.py Added PackageInfo plugin. 2008-10-22 18:31:40 +01:00
update_apt Resync all running ubottu code to bzr branch, they should now be in sync again 2009-10-12 19:26:35 +01:00
update_apt_file * Fix a couple more typos/strange supybot errors. 2009-10-15 23:06:18 +01:00

This plugin allows package lookup via apt-cache/apt-file

--Setup--
supybot.plugins.PackageInfo.aptdir:
Directory to use to store the apt cache (Global)
Default: ''

Create a new empty directory that will be used for the apt cache.
In this directory, you create sources.list files for every release you
want to search. The name of the file is important, since the filename (without
the .list suffix) is the name that is used to refer to the release.
The .list file should contain _both_ the deb and deb-src source lines.
Eg:
deb http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse

supybot.plugins.PackageInfo.defaultRelease:
Set this to the default release to use when none is specified. (Channel)
Default: ''

Whenever you create a new .list file, it is important to run the update_apt
and update_apt_file scripts that comes with this plugin. Before you run these,
you have to edit them to point to your apt dir. It's also useful to run them
periodically from cron (say, once per week for update_apt and once per moth for
update_apt_file). You also need to reload the plugin to make it pick up the new
releases.

supybot.plugins.PackageInfo.enabled:
Enable or disable package lookup snarfing. (Channel)
Default: True

supybot.plugins.PackageInfo.prefixchar:
Prefix character for the package lookup snarfer. (Channel)
Default: !

--Usage--
find <package/filename> [<release>]
Search for <package> or, of that fails, find <filename>'s package(s).
Optionally in <release>

info <package> [<release>]
Lookup information for <package>, optionally in <release>

if supybot.plugins.PackageInfo.enabled is True the bot will also reply to
the commands if prefixed with supybot.plugins.PackageInfo.prefixchar.