From 78aceffb46436ac40807da5fe2f51979a8b434b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 9 Jun 2006 12:21:06 +0000 Subject: [PATCH] make 'search-file -f' work. it doesn't look good :( --- pisi/files.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pisi/files.py b/pisi/files.py index 93384c83..d1076d95 100644 --- a/pisi/files.py +++ b/pisi/files.py @@ -91,5 +91,12 @@ class FilesDB(shelve.LockedDBShelf): infos = [] for key in self.keys(): if fnmatch.fnmatch(key, glob): - infos.append(self[key]) + + # 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