Skip to content

Commit b527c07

Browse files
committed
Suppress error on cleanup
1 parent b11eb29 commit b527c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zypperoni

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from shlex import quote
2828
import xml.etree.ElementTree as ET
2929

3030
# Constants
31-
ZYPPERONI_VERSION = "0.3.1"
31+
ZYPPERONI_VERSION = "0.3.2"
3232
ZYPPER_PID_FILE = "/run/zypp.pid"
3333
VALID_CMD = ["ref", "force-ref", "in", "in-download", "dup", "dup-download", "inr", "inr-download"]
3434
VALID_OPT = ["--debug", "--help", "--version", "--no-confirm", "--max-jobs"]
@@ -155,7 +155,7 @@ def get_zypp_lock():
155155

156156
# Function to release lock on zypper
157157
def release_zypp_lock():
158-
os.system(f"echo -n > {ZYPPER_PID_FILE}")
158+
os.system(f"echo -n > {ZYPPER_PID_FILE} > /dev/null 2>&1")
159159
return True
160160

161161
# Function to unmount temp dirs provided list of UUIDs

0 commit comments

Comments
 (0)