Skip to content

Commit f52949e

Browse files
committed
Improve package conflict check
1 parent 003057e commit f52949e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zypperoni

Lines changed: 4 additions & 4 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.3"
31+
ZYPPERONI_VERSION = "0.3.4"
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"]
@@ -500,7 +500,7 @@ elif COMMAND in ["dup", "dup-download"]:
500500
if COMMAND == "dup":
501501
logging.info(f"Space usage difference after operation: {diff_bytes/1000**2:+.2f} MB")
502502
if not num_pkgs:
503-
if xml_output.find("conflicts") != -1 or xml_output.find("nothing provides") != -1:
503+
if xml_output.find("Choose from above solutions") != -1 or xml_output.find("nothing provides") != -1:
504504
logging.warning("There are package conflicts that must be manually resolved. See output of:\n" \
505505
"zypper --non-interactive --no-cd dist-upgrade --dry-run")
506506
# parse all packages from xml output
@@ -561,7 +561,7 @@ elif COMMAND in ["in", "in-download"]:
561561
logging.info(f"Space usage difference after operation: {diff_bytes/1000**2:+.2f} MB")
562562
NO_ERR = True
563563
if not num_pkgs:
564-
if xml_output.find("conflicts") != -1 or xml_output.find("nothing provides") != -1:
564+
if xml_output.find("Choose from above solutions") != -1 or xml_output.find("nothing provides") != -1:
565565
logging.warning("There are package conflicts that must be manually resolved. See output of:\n" \
566566
"zypper --non-interactive --no-cd dist-upgrade --dry-run")
567567
if not NO_ERR:
@@ -627,7 +627,7 @@ elif COMMAND in ["inr", "inr-download"]:
627627
logging.info(f"Total download size: {download_size_bytes/1000**2:.2f} MB")
628628
logging.info(f"Space usage difference after operation: {diff_bytes/1000**2:+.2f} MB")
629629
if not num_pkgs:
630-
if xml_output.find("conflicts") != -1 or xml_output.find("nothing provides") != -1:
630+
if xml_output.find("Choose from above solutions") != -1 or xml_output.find("nothing provides") != -1:
631631
logging.warning("There are package conflicts that must be manually resolved. See output of:\n" \
632632
"zypper --non-interactive --no-cd dist-upgrade --dry-run")
633633
# parse all packages from xml output

0 commit comments

Comments
 (0)