ubuntu-bots/PackageInfo
Krytarik Raido 34be030c26 Various: Switch from 'imp' module to 'importlib'
* Bugtracker
* Encyclopedia
* PackageInfo
2020-12-10 04:50:04 +01:00
..
README.txt PackageInfo: General overhaul. 2018-05-16 23:45:04 +02:00
__init__.py Various: Switch from 'imp' module to 'importlib' 2020-12-10 04:50:04 +01:00
config.py PackageInfo: Avoid newlines getting in output. 2020-12-03 01:23:04 +01:00
packages.py PackageInfo: Avoid newlines getting in output. 2020-12-03 01:23:04 +01:00
plugin.py PackageInfo: Fix regression from previous commit. 2020-11-10 05:17:04 +01:00
test.py Update copyright/license/author/contributors information 2010-05-24 14:38:06 +01:00
update_apt PackageInfo: Explicitly trust Ubuntu and Debian keyrings. 2020-11-10 03:45:04 +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 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.