We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf01b3 commit 34872c3Copy full SHA for 34872c3
zypperoni
@@ -29,12 +29,19 @@ from shlex import quote
29
import xml.etree.ElementTree as ET
30
31
# Constants
32
-ZYPPERONI_VERSION = "1.0.8"
+ZYPPERONI_VERSION = "1.1.0"
33
ZYPPER_PID_FILE = "/run/zypp.pid"
34
ZYPPER_ENV = "ZYPP_CURL2=1 ZYPP_PCK_PRELOAD=1 ZYPP_SINGLE_RPMTRANS=1"
35
36
################################
37
38
+# Function to get zypper version
39
+def zypper_version():
40
+ out, ret = shell_exec("zypper --version")
41
+ version = out.split()[1].split(".")
42
+ version = [int(x) for x in version] # MAJOR.MINOR.PATCH
43
+ return version
44
+
45
# Function to get ANSI colored text
46
def color(text_type, text):
47
# rgb color codes
0 commit comments