mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fixed UnboundLocalError from a variable name change in debfile.
This commit is contained in:
parent
da329a3196
commit
8f2766b5ce
@ -109,19 +109,18 @@ class Debian(callbacks.Privmsg, PeriodicFileDownloader):
|
||||
# (the filenames don't have leading slashes, and people may not know
|
||||
# that).
|
||||
regexp = privmsgs.getArgs(args).lstrip('^/')
|
||||
regexp = '^' + regexp
|
||||
try:
|
||||
r = re.compile(regexp, re.I)
|
||||
except re.error, e:
|
||||
irc.error(msg, e)
|
||||
return
|
||||
if self.usePythonZegrep:
|
||||
fd = gzip.open(self.contents)
|
||||
fd = ifilter(imap(lambda line: r.search(line), fd))
|
||||
r = gzip.open(self.contents)
|
||||
r = ifilter(imap(lambda line: r.search(line), fd))
|
||||
(r, w) = popen2.popen4(['zegrep', regexp, self.contents])
|
||||
packages = []
|
||||
try:
|
||||
for line in fd:
|
||||
for line in r:
|
||||
try:
|
||||
(filename, package) = line[:-1].split()
|
||||
if filename == 'FILE':
|
||||
|
Loading…
Reference in New Issue
Block a user