Bug 450071

Summary: ncurses sw_single: Repo-Filter mixes up package versions
Product: [openSUSE] openSUSE 11.1 Reporter: Christopher Hofmann <cwh>
Component: YaST2Assignee: Katarina Machalkova <kmachalkova>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christopher Hofmann 2008-11-28 13:08:25 UTC
Repository
/mounts/dist/install/SLP/openSUSE-11.1-RC1/x86_64/DVD1/suse/x86_64/
contains
kernel-default-2.6.27.7-4.1.x86_64.rpm

Update repository for 11.1 contains
kernel-default-2.6.27.7-8.1.x86_64.rpm

Installed on my system is the version from the update repo because it is the newer one.

Now I select as filter "Repositories" in ncurses sw_single and select the repository from dist. Scrolling down to the kernel packages in the list.
package kernel-default is wrongly shown as installed and shown as version is 2.6.27.7-8.1 which is the version from the update repo - not from the selected one.

Might be a bug ...
Comment 1 Katarina Machalkova 2008-12-05 16:30:49 UTC
It is because the table always displays a version of 'candidate' package, if it is available. So if there's any newer version of the kernel on update repository, you'll see that in the 'version' column of the table. However if you look at the description field of the package under the table, you'll see two distinct versions - installed and available.

What Qt packager does is that it shows both versions in a single column in the form '$installed($available)'. Could be done in ncurses as well, but probably post-11.1 (requires string modification)

There were originally two columns in ncurses packager, one for each version, but one of them was omitted for the lack of screen space. The way it is done now saves some screen space on one hand, but on the other hand does not show exact and reliable information.
Comment 2 Katarina Machalkova 2009-01-19 13:17:57 UTC
The method for generating table contents (filling the correct pkg versions, among others) is uniform for all filters - Patterns, Languages, Repositories,... - and always fills in candidate package version. In other words, the newest version available. It works in a consistent way with Qt packager. 

However, there is an alternative way how to display which repository contains which version. Menu -> View -> Package versions will do that.