pisi: PackageKit search bug fixed
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
From: Berk Cakar <berk2238@hotmail.com>
|
||||||
|
Date: Sat, 10 Jul 2021 14:50:47 +0300
|
||||||
|
Subject: [PATCH] PackageKit Search Bug Fix
|
||||||
|
|
||||||
|
---
|
||||||
|
pisi/api.py | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/pisi/api.py b/pisi/api.py
|
||||||
|
index e8260c4..630aa65 100644
|
||||||
|
--- a/pisi/api.py
|
||||||
|
+++ b/pisi/api.py
|
||||||
|
@@ -25,6 +25,7 @@ import pisi.util
|
||||||
|
import pisi.pgraph as pgraph
|
||||||
|
import pisi.db.packagedb
|
||||||
|
import pisi.db.repodb
|
||||||
|
+import pisi.db.filesdb
|
||||||
|
import pisi.db.filesldb
|
||||||
|
import pisi.db.installdb
|
||||||
|
import pisi.db.historydb
|
||||||
|
@@ -401,9 +402,10 @@ def search_file(term):
|
||||||
|
|
||||||
|
>>> [("kvm", (["lib/modules/2.6.18.8-86/extra/kvm-amd.ko","lib/modules/2.6.18.8-86/extra/kvm-intel.ko"])),]
|
||||||
|
"""
|
||||||
|
+ filesdb = pisi.db.filesdb.FilesDB()
|
||||||
|
if term.startswith("/"): # FIXME: why? why?
|
||||||
|
term = term[1:]
|
||||||
|
- return ctx.filesdb.search_file(term)
|
||||||
|
+ return filesdb.search_file(term)
|
||||||
|
|
||||||
|
def fetch(packages=[], path=os.path.curdir):
|
||||||
|
"""
|
||||||
|
--
|
||||||
|
2.24.3 (Apple Git-128)
|
||||||
@@ -22,6 +22,9 @@
|
|||||||
<Dependency>intltool</Dependency>
|
<Dependency>intltool</Dependency>
|
||||||
<Dependency versionFrom="1.18">leveldb-devel</Dependency>
|
<Dependency versionFrom="1.18">leveldb-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">0001-PackageKit-Search-Bug-Fix.patch</Patch>
|
||||||
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
@@ -71,6 +74,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="18">
|
||||||
|
<Date>2021-07-10</Date>
|
||||||
|
<Version>2.7.2</Version>
|
||||||
|
<Comment>Rebuild.</Comment>
|
||||||
|
<Name>Berk Çakar</Name>
|
||||||
|
<Email>berk2238@hotmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="17">
|
<Update release="17">
|
||||||
<Date>2020-12-09</Date>
|
<Date>2020-12-09</Date>
|
||||||
<Version>2.7.2</Version>
|
<Version>2.7.2</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user