If a full path is given to "pisi sf" we can get it from filesdb which gives a huge
time benefit.
This commit is contained in:
@@ -41,6 +41,10 @@ class FilesDB(lazydb.LazyDB):
|
||||
return self.filesdb[md5.new(path).digest()], path
|
||||
|
||||
def search_file(self, term):
|
||||
if self.has_file(term):
|
||||
pkg, path = self.get_file(term)
|
||||
return [(pkg,[path])]
|
||||
|
||||
installdb = pisi.db.installdb.InstallDB()
|
||||
found = []
|
||||
for pkg in installdb.list_installed():
|
||||
|
||||
Reference in New Issue
Block a user