Skip to content

Commit c49c8ac

Browse files
committed
Update dup to auto agree with licenses
1 parent 5476f1d commit c49c8ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atomic-update

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-
VERSION = "0.1.3"
31+
VERSION = "0.1.4"
3232
ZYPPER_PID_FILE = "/run/zypp.pid"
3333
VALID_CMD = ["dup", "run", "rollback"]
3434
VALID_OPT = ["--reboot", "--apply", "--shell", "--continue", "--no-verify", \
@@ -403,7 +403,7 @@ chroot {TMP_MOUNT_DIR} mount -a;
403403
cleanup()
404404
sys.exit()
405405
logging.info("Performing distribution upgrade within chroot...")
406-
ret = os.system(f"zypper --root {TMP_MOUNT_DIR} {'' if CONFIRM else '--non-interactive'} --no-cd dist-upgrade")
406+
ret = os.system(f"zypper --root {TMP_MOUNT_DIR} {'' if CONFIRM else '--non-interactive'} --no-cd dist-upgrade --auto-agree-with-licenses")
407407
if ret != 0:
408408
logging.error(f"Zypper returned exit code {ret}")
409409
if not SHELL:

0 commit comments

Comments
 (0)