Commit Graph

66 Commits

Author SHA1 Message Date
Krytarik Raido 34be030c26 Various: Switch from 'imp' module to 'importlib'
* Bugtracker
* Encyclopedia
* PackageInfo
2020-12-10 04:50:04 +01:00
Krytarik Raido 5753ecf12d PackageInfo: Avoid newlines getting in output. 2020-12-03 01:23:04 +01:00
Krytarik Raido fa6be1af5a PackageInfo: Fix regression from previous commit. 2020-11-10 05:17:04 +01:00
Unit 193 4509317daf PackageInfo: Explicitly trust Ubuntu and Debian keyrings.
The debian-archive-keyring package on Ubuntu doesn't automatically add its
keys to APT's trust keyring, likewise for the Ubuntu package on Debian.
2020-11-10 03:45:04 +01:00
Krytarik Raido 95c8c5e9f7 Various: Mirror changes to checkIgnored() function.
* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-26 01:23:04 +01:00
Krytarik Raido ed35f240fd Various: Fix output redirection.
* Encyclopedia
* PackageInfo
2020-10-24 05:04:04 +02:00
Krytarik Raido 9cb39012f8 PackageInfo: Fix error when called in private. 2020-10-24 02:23:04 +02:00
Krytarik Raido 32f2c9ac3f Various: Follow upstream bot development.
Specifically, use msg.channel and make network-aware where easily possible.

* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-23 06:23:04 +02:00
Krytarik Raido 18b4fe831a Various: Avoid error when msg.prefix is from services.
* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-19 20:56:04 +02:00
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
Krytarik Raido b27c23725b PackageInfo: Add option to look up source packages too.
* Improve error handling.
* Improve output formatting.
2019-05-30 14:04:04 +02:00
Krytarik Raido 9bf38fa948 PackageInfo: Fix 'find' output limitation. 2019-05-25 09:34:04 +02:00
Krytarik Raido 3e194ca516 PackageInfo: Round package size in output.
<https://salsa.debian.org/webmaster-team/packages/blob/master/lib/Packages/DoShow.pm#L230>
2018-08-28 01:34:04 +02:00
Krytarik Raido d72081d106 Various: Work around msg.prefix in inFilter() potentially being empty...
...in Limnoria running on Python 3, particularly on startup.

* Bugtracker
* Encyclopedia
* PackageInfo
2018-05-22 00:45:04 +02:00
Krytarik Raido af7578e888 PackageInfo: Update for apt-file 3 2018-05-16 23:45:04 +02:00
Krytarik Raido 398247f0dd PackageInfo: General overhaul.
* 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.
2018-05-16 23:45:04 +02:00
Krytarik Raido 4956995f9a PackageInfo: Various improvements (by Valentin Lorentz)
* Add depends command.
* Improve handling of find and info.
* Fix crash by double reloading.
* Fix shell code injection vulnerability.
2018-05-16 23:45:04 +02:00
Krytarik Raido 075b45ce9f PackageInfo: Add Python 3 support (by Valentin Lorentz) 2018-05-16 23:45:04 +02:00
Simon Quigley 8b46658bbc [Trivial] Fixed trivial typo in PackageInfo/README.txt 2016-04-22 20:05:58 -05:00
Terence Simpson af6c250eed [PackageInfo]
* Work with packages that have a version of less than 0
2014-11-05 11:42:35 +00:00
tsimpson 2cef319400 Replace deprecated use of apt.VersionCompare with apt.apt_pkg.version_compare 2013-10-30 23:34:45 +00:00
tsimpson 3dda319c00 PackageInfo/update_apt: Set Dir::Etc::SourceParts to the empty string to avoid reading files in /etc/apt/sources.d/ 2012-12-18 17:06:21 +00:00
tsimpson b038dca49c Bugtracker: Fix bugSnarfer regex to (finally) detect "tracker: #number" format
PackageInfo: Force apt-file to i386 architecture, as update_apt_file only grabs that anyway
2012-09-27 13:16:42 +01:00
tsimpson a3027d3eea actually fix number of string format arguments 2012-04-12 21:03:02 +01:00
tsimpson 03ce743951 fix number of string format arguments 2012-04-12 20:49:50 +01:00
tsimpson a321713489 try a fix for lp bug #980202 2012-04-12 20:45:02 +01:00
tsimpson 72bbcdc34b Workaround translations in apt-cache 2012-04-11 00:48:30 +01:00
tsimpson f0d7e799d1 Merge ubottu Bugtracker with bzr.
Treat the Architecture key from apt-cache as a list, rather than a single string.
2012-04-10 14:05:29 +01:00
tsimpson 3d087845f1 Update PackageInfo scripts to be a little more useful and robust.
Also, in a break from character, I added some documentation.
2012-04-09 17:28:49 +01:00
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
Terence Simpson 101aef49b3 $%"%* I, apparently, suck 2011-04-19 18:16:00 +01:00
Terence Simpson 507a7f0e0e [PackageInfo] Make sure to strip '>' off before splitting the nick from redirect, or redirect will fail 2011-04-19 18:13:00 +01:00
Terence Simpson 2a4663d09d release can be None in __getRelease 2011-04-19 18:08:10 +01:00
Terence Simpson e1b7f6304d [PackageInfo] Handle the pipe character correctly and limit redirect (>) to 1 nick only
(lp: #764217)
2011-04-19 18:05:48 +01:00
Terence Simpson 6b3e58d19d Revert to r238 2011-04-19 17:50:46 +01:00
Terence Simpson 3e389ccfd8 [PackageInfo] Handle the pipe character correctly and limit redirect (>) to 1 nick only 2011-04-19 17:38:22 +01:00
Terence Simpson fb70eb9e5d Bug-Fix: "local variable 'distro' referenced before assignment" error in PackageInfo (LP: #623639) 2010-11-19 14:11:23 +00:00
Terence Simpson be8346a7bf PackageInfo: !find now returns up to 10 matches and provides a link to packages.ubuntu.com for larger matches 2010-09-04 16:19:46 +01:00
Terence Simpson 55ca23f755 Make configure() do something for all plugins, also fix a couple of things from r197-203 2010-05-29 14:36:43 +01:00
Terence Simpson ec4399ea8b really fix this time 2010-05-29 00:58:49 +01:00
Terence Simpson 5082202a3e fix++ 2010-05-29 00:55:07 +01:00
Terence Simpson f3de8f84a6 Make a custom anything() function that follows the same form as every other function in supybot.questions, because apparently no one thought this was a good idea... 2010-05-28 23:51:28 +01:00
Terence Simpson ad7a493262 Update copyright/license/author/contributors information
Make sure all files have encoding set to utf-8 unless they already have an encoding
Added COPYING with contense of GPL-2
Added plugin name prefix to all log output. This should take the form of self.log.severity("Plugin: message"),
when not logging from plugin.py use: "Plugin/file_without_dot_py: message"
Bantracker: Made the confgure() function do something, it also creates an initial database if it doesn't exist
Encyclopedia: Made the configure() function do something, it also creates an initial database if it doesn't exist
PackageInfo: Improve the configure() function, it also now creates some initial .list files and prompts to run update_apt and update_apt_file
This goes some way to getting an "ubottu" package together, all we need to do is patch supybot-wizard to download the plugins
from bzr and put them somewhere supybot will see them, then the wizard will do all the initial setup
2010-05-24 14:38:06 +01:00
Terence Simpson 0320609071 use /usr/bin/env for #! lines 2010-05-19 14:11:16 +01:00
Terence Simpson 95c715b339 "!info [packagename]" doesn't work in PM w/o being logged in" (LP: #314302) again 2010-04-19 03:22:38 +01:00
Terence Simpson f7ed5b4b2c Fix typo in PackageInfo (LP: #563846):
* Incorporate patch from Michael Lustfield <michael@profarius.com>
2010-04-15 19:43:41 +01:00
Terence Simpson 7fe0ec2c10 Replace hard coded prefix-chars and command names with config values and auto-generated lists 2010-04-15 07:29:20 +01:00
Terence Simpson 15db4c8201 Actually reply to !info and !find when in /msg 2010-04-15 03:08:17 +01:00
Terence Simpson 5c6c32608e And fix it again :) 2010-04-13 02:38:24 +01:00
Terence Simpson f757b715bd Add flood protection to PackageInfo (LP: #561908)
update copyright stuff.
2010-04-13 02:12:54 +01:00