mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Needed to import fix and call fix.rsplit instead of utils.rsplit
This commit is contained in:
parent
0d8ef3ee6d
commit
18d52f8b27
@ -46,6 +46,7 @@ import os.path
|
|||||||
import urllib2
|
import urllib2
|
||||||
from itertools import imap, ifilter
|
from itertools import imap, ifilter
|
||||||
|
|
||||||
|
import fix
|
||||||
import conf
|
import conf
|
||||||
import utils
|
import utils
|
||||||
import privmsgs
|
import privmsgs
|
||||||
@ -255,7 +256,7 @@ class Debian(callbacks.Privmsg, plugins.PeriodicFileDownloader):
|
|||||||
if m:
|
if m:
|
||||||
name = m.group(1)
|
name = m.group(1)
|
||||||
if all(lambda p: p(name), predicates):
|
if all(lambda p: p(name), predicates):
|
||||||
realname = utils.rsplit(name, '_', 1)[0]
|
realname = fix.rsplit(name, '_', 1)[0]
|
||||||
packages.append(realname)
|
packages.append(realname)
|
||||||
if len(packages) == 0:
|
if len(packages) == 0:
|
||||||
irc.error(msg, 'No packages matched that search.')
|
irc.error(msg, 'No packages matched that search.')
|
||||||
|
Loading…
Reference in New Issue
Block a user