summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-18 11:18:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-18 11:18:29 +0100
commitf28b67f3d6910f71e20da86367205f3c3660ff72 (patch)
treee911759abc66c51e8b4eb7d55ab3146bf0b45c3b /src/backend
parentef7479ddce20795821190197622df79ca4259f64 (diff)
fix imports in dbsearch (no need to import the whole thing), rename it so we have something uniform
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/__init__.py4
-rw-r--r--src/backend/searchbinary.py (renamed from src/backend/dbsearch.py)7
-rw-r--r--src/backend/searchebuild.py (renamed from src/backend/search.py)0
3 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/__init__.py b/src/backend/__init__.py
index c13a513..59c927c 100644
--- a/src/backend/__init__.py
+++ b/src/backend/__init__.py
@@ -6,7 +6,6 @@ from .cache import *
from .check import *
from .csvfiles import *
from .database import *
-from .dbsearch import *
from .filesystem import *
from .installbinary import *
from .installebuild import *
@@ -14,7 +13,8 @@ from .killportage import *
from .metadata import *
from .mirror import *
from .rescue import *
-from .search import *
+from .searchbinary import *
+from .searchebuild import *
from .setjobs import *
from .setprofile import *
from .solvedeps import *
diff --git a/src/backend/dbsearch.py b/src/backend/searchbinary.py
index 6e954b0..0305a14 100644
--- a/src/backend/dbsearch.py
+++ b/src/backend/searchbinary.py
@@ -1,8 +1,9 @@
#!/usr/bin/python3
-import sisyphus
-import sqlite3
import os
+import sisyphus.filesystem
+import sisyphus.update
+import sqlite3
def searchDB(filter, cat = '', pn = '', desc = ''):
NOVIRT = "AND cat NOT LIKE 'virtual'"
@@ -100,7 +101,7 @@ def searchDB(filter, cat = '', pn = '', desc = ''):
def tosql(string):
return '%%' if string == '' else string.replace('*', '%').replace('?', '_')
-def showSearch(filter, cat, pn, desc, single = False):
+def start(filter, cat, pn, desc, single = False):
if os.getuid() == 0:
sisyphus.update.start()
else:
diff --git a/src/backend/search.py b/src/backend/searchebuild.py
index c9b5862..c9b5862 100644
--- a/src/backend/search.py
+++ b/src/backend/searchebuild.py