* Add full support for Debian releases. * Unify and simplify piping and redirection. * Various general and minor improvements. * Switch architecture for infos to amd64. * Update default configuration. * Improve APT update scripts.
53 lines
2.1 KiB
Plaintext
53 lines
2.1 KiB
Plaintext
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.
|