[Bug 384412] New: zypper: Installed confusion: No ! Yes ! No ! :-)
https://bugzilla.novell.com/show_bug.cgi?id=384412 Summary: zypper: Installed confusion: No ! Yes ! No ! :-) Product: openSUSE 11.0 Version: Beta 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: kkaempf@novell.com QAContact: dmacvicar@novell.com Found By: --- > sudo zypper in curl-devel * Downloading repository 'factory' metadata. * Building repository 'factory' cache Reading installed packages... 'curl-devel' is already installed. Nothing to do. > rpm -q curl-devel package curl-devel is not installed > sudo zypper refresh Repository 'factory' is up to date. All repositories have been refreshed. > sudo zypper in curl-devel Reading installed packages... 'curl-devel' is already installed. Nothing to do. Hmm ... -- 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.
dumpsolv /var/cache/zypp/@System.solv .. name: libcurl-devel 7.18.1-6 x86_64 vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
https://bugzilla.novell.com/show_bug.cgi?id=384412 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c1 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|zypper: Installed confusion: No ! Yes ! No ! :-)|zypper: 'Already installed' should name package, | |not requirement --- Comment #1 from Klaus Kämpf <kkaempf@novell.com> 2008-04-28 10:35:22 MST --- Ahh ... provides: curl-devel <= 7.15.5 libcurl-devel = 7.18.1-6 obsoletes: curl-devel < 7.16.2 .. So this 'bug' is about zypp/zypper producing a better error message, e.g. 'libcurl-devel, providing curl-devel, is already installed' -- 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=384412 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jreidinger@novell.com AssignedTo|zypp-maintainers@forge.provo.novell.com |jreidinger@novell.com Status|NEW |ASSIGNED -- 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=384412 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c2 --- Comment #2 from Josef Reidinger <jreidinger@novell.com> 2008-04-29 01:51:16 MST --- submitted in svn. Output looks like you suggested. It is printed only for capabilities. 'libcurl-devel' providing 'curl-devel' is already installed. -- 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=384412 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c3 --- Comment #3 from Josef Reidinger <jreidinger@novell.com> 2008-04-29 02:05:24 MST --- (In reply to comment #2 from Josef Reidinger)
submitted in svn. Output looks like you suggested. It is printed only for capabilities. 'libcurl-devel' providing 'curl-devel' is already installed.
due to string freeze this patch is done after 11.0 release -- 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=384412 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c4 --- Comment #4 from Josef Reidinger <jreidinger@novell.com> 2008-04-29 02:22:44 MST --- Hmm, another change, string is changed to 'curl-devel(libcurl-devel)' is already installed. so this is not break string. -- 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=384412 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c5 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@novell.com, jkupec@novell.com --- Comment #5 from Michael Schröder <mls@novell.com> 2008-04-30 03:18:21 MST --- I don't thing 'zypper in' should search for capabilities, but just for packages matching the name. Going for capabilities is not what user's expect. You should use some other way to switch zypper into "capability" mode. -- 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=384412 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c6 --- Comment #6 from Ján Kupec <jkupec@novell.com> 2008-04-30 03:40:10 MST --- (In reply to comment #5 from Michael Schröder)
I don't thing 'zypper in' should search for capabilities, but just for packages matching the name. Going for capabilities is not what user's expect.
You would be surprised :O) e.g. bug #337007, fate #302919.
You should use some other way to switch zypper into "capability" mode.
It tries to select the package by name first, and if that fails it falls back to capability. Either modes can be forced by --name or --capability. Everything will be documented in man page and wiki, including examples. I hope most of the people will be comfortable with this :O) -- 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=384412 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c7 --- Comment #7 from Klaus Kämpf <kkaempf@novell.com> 2008-04-30 04:06:53 MST --- (In reply to comment #5 from Michael Schroeder)
I don't thing 'zypper in' should search for capabilities, but just for packages matching the name. Going for capabilities is not what user's expect. You should use some other way to switch zypper into "capability" mode.
From a usability POV, I have to object. I do think that this behavior is very helpful. As you can see from the initial bug description, I used zypper to install a
package (cups-devel) mentioned as a requirement in a software 'readme'. The result from zypper suprised me, hence I reported this bug. Now image libcurl-devel would've not been installed. The ability to do a simple "zypper in curl-devel" is a huge usability plus. One can argue about the output from zypper in such a case (capability matches, but not package name). It could be silent, e.g.
zypper in curl-devel Installing libcurl-devel. Done.
or more verbose, e.g.
zypper in curl-devel No package named 'curl-devel' found. Package 'libcurl-devel' provides 'curl-devel', install this [YES/no] ?
-- 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=384412 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c8 --- Comment #8 from Michael Schröder <mls@novell.com> 2008-04-30 04:27:39 MST --- Good to hear that it goes for names first, therefore I don't have problems with it. But I agree with Klaus that it should be more verbose when falling back to capabilities. I don't think you really need to ask the user, though, just printing a message should be enough. -- 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=384412 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c9 --- Comment #9 from Ján Kupec <jkupec@novell.com> 2008-04-30 07:28:32 MST --- And that's already done (c#2-4), or do you suggest something more/else? -- 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=384412 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384412#c10 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #10 from Josef Reidinger <jreidinger@novell.com> 2008-05-02 05:07:22 MST --- in zypper 0.11.2 -- 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