[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
https://bugzilla.novell.com/show_bug.cgi?id=384412
Josef Reidinger
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
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
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
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
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
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
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
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
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
participants (1)
-
bugzilla_noreply@novell.com