ubuntu-bots/PackageInfo
Krytarik Raido aec19ef265 Various: Work around msg.args in inFilter() potentially being empty...
...in Limnoria running on Python 3

* Bugtracker
* Encyclopedia
* PackageInfo
2019-05-31 06:50:04 +02:00
..
README.txt PackageInfo: General overhaul. 2018-05-16 23:45:04 +02:00
__init__.py PackageInfo: Add option to look up source packages too. 2019-05-30 14:04:04 +02:00
config.py PackageInfo: General overhaul. 2018-05-16 23:45:04 +02:00
packages.py PackageInfo: Add option to look up source packages too. 2019-05-30 14:04:04 +02:00
plugin.py Various: Work around msg.args in inFilter() potentially being empty... 2019-05-31 06:50:04 +02:00
test.py Update copyright/license/author/contributors information 2010-05-24 14:38:06 +01:00
update_apt PackageInfo: General overhaul. 2018-05-16 23:45:04 +02: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 lucid 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: 'zesty'

Whenever you create a new .list file, it is important to run the update_apt
and update_apt_file scripts that come 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, if that fails, <filename> in packages,
optionally in <release>

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

depends <package> [<release>]
Look up dependencies 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.