Kaydet (Commit) 78aceffb authored tarafından Barış Metin's avatar Barış Metin

make 'search-file -f' work. it doesn't look good :(

üst 739a4c99
......@@ -91,5 +91,12 @@ class FilesDB(shelve.LockedDBShelf):
infos = []
for key in self.keys():
if fnmatch.fnmatch(key, glob):
# FIXME: Why should we assign path attribute manually
# in fileinfo? This is also done in get_file(), seems
# like a dirty workaround... - baris
name = self[key][0]
fileinfo = self[key][1]
fileinfo.path = key
infos.append((name, fileinfo))
return infos
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment