summaryrefslogtreecommitdiffstats
path: root/tools/inspect_apps.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/inspect_apps.py')
-rw-r--r--tools/inspect_apps.py20
1 files changed, 2 insertions, 18 deletions
diff --git a/tools/inspect_apps.py b/tools/inspect_apps.py
index 2b9f57d..5b6ec00 100644
--- a/tools/inspect_apps.py
+++ b/tools/inspect_apps.py
@@ -1,7 +1,9 @@
import logging
import os
import re
+import rpm # type: ignore
+from Registry import Registry # type: ignore
from . import log, subdirs
__all__ = [
@@ -15,24 +17,6 @@ __all__ = [
L = logging.getLogger(__name__)
-try:
- import rpm # type: ignore
-except ModuleNotFoundError:
- L.error(
- "You need to install the following package:\n"
- "sudo apt install python3-rpm"
- )
- raise
-
-try:
- from Registry import Registry # type: ignore
-except ModuleNotFoundError:
- L.error(
- "You need to install the following package:\n"
- "pip3 install python-registry"
- )
- raise
-
@log
def list_applications_apk(path):