[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
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
http://bugzilla.novell.com/show_bug.cgi?id=492251
Lars Marowsky-Bree
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
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
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
- 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
https://bugzilla.novell.com/show_bug.cgi?id=492251
https://bugzilla.novell.com/show_bug.cgi?id=492251#c7
--- Comment #7 from Dave Plater
participants (1)
-
bugzilla_noreply@novell.com