openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
392 stars 107 forks source link

patch: add --skip-not-applicable-patches to autoresolve not applicable patches #532

Closed mlandres closed 4 months ago

mlandres commented 5 months ago

(closes #514) The first commits are fixes and enhancements to the patch. The last one introduces the feature.

If multiple problems are to be reported, zypper uses a 1st pass to quickly list all problems and a 2nd pass to ask to resolve each problem.

We use the 1st pass to check for auto-applicable solutions and re-solve if solutions were applied. If problems still remain at the end, we ask.

The draft is basically ready. Remaining tasks:

mlandres commented 5 months ago

Screen output will look like this:

Resolving package dependencies...
2 Problems:
Problem: 1: the to be installed patch:openSUSE-SLE-15.4-2023-4534-1.noarch conflicts 
with 'zypper-aptitude < 1.14.66-150400.3.35.1' provided by the installed 
zypper-aptitude-1.14.61-150400.3.24.1.noarch
 Autoresolve:                                        (--skip-not-applicable-patches)
 Solution 1: Following actions will be done:
  do not install patch:openSUSE-SLE-15.4-2023-4534-1.noarch
  do not install patch:openSUSE-SLE-15.4-2023-3973-1.noarch
Problem: 2: the to be installed patch:openSUSE-SLE-15.4-2023-3514-1.noarch conflicts 
with 'zypper-aptitude < 1.14.63-150400.3.29.1' provided by the installed 
zypper-aptitude-1.14.61-150400.3.24.1.noarch
 Autoresolve:                                        (--skip-not-applicable-patches)
 Solution 1: Following actions will be done:
  do not install patch:openSUSE-SLE-15.4-2023-3514-1.noarch
  do not install patch:openSUSE-SLE-15.4-2023-3973-1.noarch

Resolving dependencies...