Debian: fix file download and remove -i option to zgrep (too heavy for a such big file)
parent
12e5ab134d
commit
cd9d5de94a
|
@ -162,6 +162,11 @@ class Debian(callbacks.Plugin, PeriodicFileDownloader):
|
|||
'debian/dists/unstable/Contents-i386.gz',
|
||||
604800, None)
|
||||
}
|
||||
|
||||
def __init__(self, irc):
|
||||
callbacks.Plugin.__init__(self, irc)
|
||||
PeriodicFileDownloader.__init__(self)
|
||||
|
||||
contents = conf.supybot.directories.data.dirize('Contents-i386.gz')
|
||||
def file(self, irc, msg, args, optlist, glob):
|
||||
"""[--{regexp,exact} <value>] [<glob>]
|
||||
|
@ -200,7 +205,7 @@ class Debian(callbacks.Plugin, PeriodicFileDownloader):
|
|||
imap(lambda line:(re_obj.search(line), line),fd)))
|
||||
else:
|
||||
try:
|
||||
(r, w) = popen2.popen4(['zgrep', '-ie', regexp, self.contents])
|
||||
(r, w) = popen2.popen4(['zgrep', '-e', regexp, self.contents])
|
||||
w.close()
|
||||
except TypeError:
|
||||
# We're on Windows.
|
||||
|
|
Loading…
Reference in New Issue