We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8730fe0 commit 0abb070Copy full SHA for 0abb070
1 file changed
meta_update.py
@@ -1,12 +1,25 @@
1
#!/usr/bin/env python3
2
3
+import apt
4
import os
5
import pathlib
6
import shutil
7
import sqlite3
8
import subprocess
9
import sys
10
11
+# Check the python version, minimum version needs to be 3.7
12
+if sys.version_info < (3, 7):
13
+ sys.exit("You must use Python 3.7 or newer.")
14
+
15
+# Check if pv is installed
16
+cache = apt.Cache()
17
+cache.open()
18
+try:
19
+ cache["pv"].is_installed
20
+except Exception:
21
+ sys.exit("You must install pv, apt install pv.")
22
23
# Installation count/type
24
installCount = 0
25
installType = ""
0 commit comments