ubuntu-bots/PackageInfo
Terence Simpson fd36bffcc0 (large commit, see bazaar log)
[Bantracker]
 * Less spaces in README.txt
 * Remove mention of table 'users' in README.txt
 * Add more detail on how to create the bans database in README.txt
 * Add note about supybot-wizard creating the initial database in README.txt
 * Don't hard-code default values in config.py:configure()
 * Tweak config.py
 * Clean up bans.cgi a bit

[Bugtracker]
 * Comment-out obsolete "bug reporting" variables in config.py
 * Update README.txt and remove "bug reporting" stuff, also remove extraneous license info
 * Comment-out obsolete "bug reporting" code
 * Don't import imaplib

[Encyclopedia]
 * Don't hard-code default values in config.py:configure()
 * Check for 'owner' capability before checking if the hostmask is ignored in plugin.py:checkIgnored()
 * Clean up README.txt

[PackageInfo]
 * Don't hard-code default values in config.py:configure()
 * Update default distributions in config.py:configure()
 * Update defaultRelease in config.py 
 * Update README.txt

* Add a few docstrings to commoncgi.py
* Update COPYING
* Update README.txt
2011-05-28 07:33:21 +01:00
..
README.txt (large commit, see bazaar log) 2011-05-28 07:33:21 +01:00
__init__.py Update copyright/license/author/contributors information 2010-05-24 14:38:06 +01:00
config.py (large commit, see bazaar log) 2011-05-28 07:33:21 +01:00
packages.py Bug-Fix: "local variable 'distro' referenced before assignment" error in PackageInfo (LP: #623639) 2010-11-19 14:11:23 +00:00
plugin.py $%"%* I, apparently, suck 2011-04-19 18:16:00 +01:00
test.py Update copyright/license/author/contributors information 2010-05-24 14:38:06 +01:00
update_apt (large commit, see bazaar log) 2011-05-28 07:33:21 +01:00
update_apt_file (large commit, see bazaar log) 2011-05-28 07:33:21 +01:00

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

If you choose to enable this plugin from the supybot-wizard command, then most
of the setup will be automatically done for you. You may still change the values
of the settings manaually.

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

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; in lucid.list:
deb http://archive.ubuntu.com/ubuntu ludid main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu lucid main restricted universe multiverse

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

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.