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