[Bug 730824] New: "zypper -n patch" does not install interactive patches
https://bugzilla.novell.com/show_bug.cgi?id=730824 https://bugzilla.novell.com/show_bug.cgi?id=730824#c0 Summary: "zypper -n patch" does not install interactive patches Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: joschibrauchle@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Very simple problem with zypper 1.5.7 "zypper lp" shows: ----- Loading repository data... Reading installed packages... Repository | Name | Version | Category | Status ------------------------------+----------------+---------+----------+------- OpenSUSE11.4 Update Esslingen | flash-player | 5420 | security | needed OpenSUSE11.4 Update Esslingen | flash-player | 5436 | security | needed OpenSUSE11.4 Update Esslingen | java-1_6_0-sun | 5320 | security | needed OpenSUSE11.4 Update Esslingen | kernel | 5359 | security | needed ----- But unfortunately, "zypper -n patch" does this: ----- Loading repository data... Reading installed packages... Warning: Patch 'flash-player-5436' is interactive, skipping. Warning: Patch 'java-1_6_0-sun-5320' is interactive, skipping. Warning: Patch 'kernel-5359' is interactive, skipping. Resolving package dependencies... Nothing to do. ----- The option "-n" means "non-interactive" mode, but it looks like it is not working... Reproducible: Always Steps to Reproduce: 1.zypper -n patch Actual Results: Not installing interactive patches Expected Results: Should install interactive patches in non-interactive mode (-n switch) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=730824 https://bugzilla.novell.com/show_bug.cgi?id=730824#c1 Marc Schütz <schuetzm@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schuetzm@gmx.net --- Comment #1 from Marc Schütz <schuetzm@gmx.net> 2012-04-27 14:48:17 UTC --- I think the option works just okay. The patches are marked as interactive, so obviously they cannot be installed in non-interactive mode. The real problem IMO is that they are marked interactive at all: Flash Player and Java don't need any real interaction during installation, they just want you to agree to the license, which is what the option --auto-agree-with-licenses is there for. Unfortunately, as the patches are still marked as interactive (although they aren't), there's no way to install them in non-interactive mode (just checked with openSUSE-2012-250 on 12.1) _even if you use this option_. For the kernel it's debatable. Its installation isn't interactive either, but you need to/should reboot afterwards, which I wouldn't count as interactive, and indeed it has a separate flag in the patch description. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=730824 https://bugzilla.novell.com/show_bug.cgi?id=730824#c2 --- Comment #2 from Joschi Brauchle <joschibrauchle@gmx.de> 2012-04-27 15:50:46 UTC --- Well, if you think this option works the way it was designed, why does - "zypper -n up" install all packages (including kernel, flash and java) but - "zypper -n patch" skip kernel, flash and java patches due to "interactivity"? Am I missing something here? The packages for the kernel, flash and java are marked as interactive as well, just like the corresponding patches, right? As a user, I would expect the "-n" option to work the same way for "up" and "patch"?!? ---- Actually I just reread the zypper man page, and there is a "--with-interactive" switch for the "patch" commmand: "Avoid skipping of interactive patches when in non-interactive mode." This looks promising (I cant test right now), but the explanation is kinda confusing, right? So, to summarize: "-n" is a global option, but then, for "patch" there are the options: --skip-interactive --with-interactive for "update" there is the option: --skip-interactive (--with-interactive missing) for "install", none of these exist... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=730824 https://bugzilla.novell.com/show_bug.cgi?id=730824#c3 --- Comment #3 from Michael Andres <ma@suse.com> 2012-04-30 11:05:50 CEST --- (In reply to comment #2)
Well,
if you think this option works the way it was designed, why does - "zypper -n up" install all packages (including kernel, flash and java) but - "zypper -n patch" skip kernel, flash and java patches due to "interactivity"?
Am I missing something here?
There's a difference beteen packages and patches. 'zypper up' is a package based update to newer versions. Package installation is not interactive unless you have to confirm a license. A patch is issue based. A patch has more sources of 'interactiveness' than packages have. It may e.g contain additional (issue related) messages to be shown to the user (like e.g. a 'reboot suggested') upon installation of the patch. For each interaction there's a default when "-n" is used. For packages this is to fail if the package has a license unless you use --auto-agree-with-licenses. For patches it is to omit patches with messages to confirm unless you use --with-interactive. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=730824 https://bugzilla.novell.com/show_bug.cgi?id=730824#c4 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Michael Andres <ma@suse.com> 2012-04-30 11:52:41 CEST --- So the initial report is INVALID. Nevertheless,... (In reply to comment #1)
--auto-agree-with-licenses is there for. Unfortunately, as the patches are still marked as interactive (although they aren't), there's no way to install them in non-interactive mode (just checked with openSUSE-2012-250 on 12.1)
zypper-1.6.26 (openSUSE-12.1) should no longer treat patches with licensed packages as interactive if --auto-agree-with-licenses is used. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=730824 https://bugzilla.novell.com/show_bug.cgi?id=730824#c5 --- Comment #5 from Swamp Workflow Management <swamp@suse.de> 2012-06-18 09:09:34 UTC --- openSUSE-RU-2012:0750-1: An update that has four recommended fixes can now be installed. Category: recommended (important) Bug References: 730824,749418,761985,765164 CVE References: Sources used: openSUSE 12.1 (src): libsolv-0.0.1-3.11.1, libzypp-10.4.5-1.17.1, zypper-1.6.26-5.22.1 openSUSE 11.4 (src): libzypp-8.13.6-18.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com