[Bug 640399] New: "zypper in -t patch timezone-2010l" doesn't find patch
https://bugzilla.novell.com/show_bug.cgi?id=640399 https://bugzilla.novell.com/show_bug.cgi?id=640399#c0 Summary: "zypper in -t patch timezone-2010l" doesn't find patch Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: suse-beta@cboltz.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: --- Created an attachment (id=390387) --> (http://bugzilla.novell.com/attachment.cgi?id=390387) zypper.log.bz2
zypper lp Loading repository data... Reading installed packages...
Repository | Name | Version | Category | Status --------------+----------------+---------+-------------+------- Updates [...] | kernel | 3105 | security | needed Updates [...] | timezone-2010l | 3011 | recommended | needed
zypper in -t patch timezone-2010l Loading repository data... Reading installed packages... Patch 'timezone' not found. <------------ Resolving package dependencies... Nothing to do.
The reason for this bug is quite obvious when looking at the output above and also in zypper.log (full log attached): [zypper] PackageArgs.cc(argsToCaps):239 got wanted 'patch:timezone == 2010l'; Obviously zypper splits the patch name at the "-" and things everything on the right side is a version number. There are two options how this bug can be solved: a) let zypper search for the full name (as given on the commandline) first, before splitting it into name and version b) forbid usage of "-" in patch names BTW: zypper in -t patch timezone-2010l-3011 fails with the same error message. -- 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=640399 https://bugzilla.novell.com/show_bug.cgi?id=640399#c1 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #1 from Michael Andres <ma@novell.com> 2010-09-20 13:17:24 CEST --- @Jano: IMO in zypper PackageArgs::argsToCaps(const zypp::ResKind & kind). A kind different than package needs to be prepended when calling guessPackageSpec: * timezone-2010l ==> 1: timezone == 2010l patch:timezone-2010l ==> 0: patch:timezone-2010l package:gnome-vfs2-doc ==> 0: gnome-vfs2-doc No kind is the same as 'package:', so "timezone-2010l" is not found because there's no package with that name. The patch name is "patch:timezone-2010l" and this way guessPackageSpec should find it. Maybe workaround: zypper in patch:timezone-2010l -- 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=640399 https://bugzilla.novell.com/show_bug.cgi?id=640399#c2 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|zypp-maintainers@forge.prov |jkupec@novell.com |o.novell.com | --- Comment #2 from Ján Kupec <jkupec@novell.com> 2010-09-20 11:48:33 UTC --- Thanx, will fix it. -- 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=640399 https://bugzilla.novell.com/show_bug.cgi?id=640399#c3 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Ján Kupec <jkupec@novell.com> 2010-09-20 17:51:21 UTC --- Fixed in git master. Yes, the workaround works, so i guess no need to release for 11.3. -- 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