[Bug 492251] New: zypper rm using ARCH < has wrong result
http://bugzilla.novell.com/show_bug.cgi?id=492251 Summary: zypper rm using ARCH < has wrong result Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: dave.plater@yahoo.co.uk QAContact: qa@suse.de Found By: --- Created an attachment (id=284126) --> (http://bugzilla.novell.com/attachment.cgi?id=284126) zypper log User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009022800 SUSE/3.0.7-1.7 Firefox/3.0.6, Ant.com Toolbar 1.3 I have multi versions enabled in zypp.conf for kernel-default and kernel-source and I decided to try to use zypper to remove versions older than 2.6.29-1.3 in fact I wanted to remove all of the 2.6.27 versions. Reproducible: Always Steps to Reproduce: 1.zypper -v sh 2.rm kernel-default-base<2.6.29-1.3 kernel-source<2.6.29-1.3 3. Actual Results: The result for kernel-default-base was as expected and all of the versions less than 2.6.29-1.3 were removed however the result for kernel-source was what would be expected from "less than or equal to" or <= kernel-source-2.6.29-1.3 was also removed. Expected Results: All of kernel-default, default-base, default-extra and source versions that are less than version 2.6.29-1.3 would have been removed. Although I'm reporting this bug against factory, I suspect that it exists in all versions of zypper since the ARCH functionality was introduced. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492251 User mls@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492251#c1 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|zypp-maintainers@forge.prov |kernel-maintainers@forge.pr |o.novell.com |ovo.novell.com --- Comment #1 from Michael Schröder <mls@novell.com> 2009-04-06 04:28:52 MDT --- It's because of two reasons: - the kernel folks do something strange (stupid?): kernel-source-2.6.29-1.3 contains a "Provides: kernel-source = 2.6.29-1" - zypper transmits the erase request as "erase all packages matching the capability" instead of "erase all packages matching with their name/evr", because libzypp doesn't provide that interface. We'll fix the second issue in 11.2, reassigned to kernel-maintainers for them to explain the first issue. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492251 User dave.plater@yahoo.co.uk added comment http://bugzilla.novell.com/show_bug.cgi?id=492251#c2 --- Comment #2 from Dave Plater <dave.plater@yahoo.co.uk> 2009-04-06 04:49:24 MDT --- Th actual kernel source directory's name is linux-2.6.29-1, I should imagine the Provides has some thing to do with that. I will beware of this in future when using <. I was just a bit worried if it did something like this with a critical package. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492251 Lars Marowsky-Bree <lmb@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |mmarek@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492251 User mmarek@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492251#c3 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mmarek@novell.com AssignedTo|mmarek@novell.com |zypp-maintainers@forge.prov | |o.novell.com --- Comment #3 from Michal Marek <mmarek@novell.com> 2009-04-06 05:35:23 MDT --- (In reply to comment #1)
It's because of two reasons: - the kernel folks do something strange (stupid?): kernel-source-2.6.29-1.3 contains a "Provides: kernel-source = 2.6.29-1"
We strip the volatile rebuild counter to be able to depend on "matching" packages, where "matching" means built from the same source checkin. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492251 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |ma@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492251 http://bugzilla.novell.com/show_bug.cgi?id=492251#c4 --- Comment #4 from Ján Kupec <jkupec@novell.com> 2010-02-12 13:07:06 UTC --- (In reply to comment #1)
- zypper transmits the erase request as "erase all packages matching the capability" instead of "erase all packages matching with their name/evr", because libzypp doesn't provide that interface.
@ma: i can do this using PoolQuery on name & version and marking the result for removal. Or would some zypp api be better for this? -- Configure bugmail: http://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=492251 https://bugzilla.novell.com/show_bug.cgi?id=492251#c6 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |Future 11.3 --- Comment #6 from Ján Kupec <jkupec@novell.com> 2010-10-19 10:26:32 UTC --- This was fixed in zypper 1.4.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.
https://bugzilla.novell.com/show_bug.cgi?id=492251 https://bugzilla.novell.com/show_bug.cgi?id=492251#c7 --- Comment #7 from Dave Plater <davejplater@gmail.com> 2010-10-19 20:35:29 UTC --- I'd forgotten about this bug, I did an old kernel spring clean the other day and zypper worked as expected so I confirm it's fixed. -- 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