Bug 733167

Summary: zypper lp output nearly useless
Product: [openSUSE] openSUSE 12.1 Reporter: Christian Boltz <suse-beta>
Component: MaintenanceAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P1 - Urgent CC: coolo, dmacvicar, dmueller, maintenance
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Boltz 2011-11-28 21:10:32 UTC
The output of "zypper lp" is nearly useless since openSUSE 12.1 :-(

A screen dump is probably the best explanation:

# zypper lp
Loading repository data...
Reading installed packages...

Repository  | Name             | Version | Category    | Status
------------+------------------+---------+-------------+-------
update-12.1 | openSUSE-2011-16 | 1       | recommended | needed
update-12.1 | openSUSE-2011-17 | 1       | recommended | needed
update-12.1 | openSUSE-2011-21 | 1       | recommended | needed
update-12.1 | openSUSE-2011-22 | 1       | recommended | needed
update-12.1 | openSUSE-2011-25 | 1       | recommended | needed
update-12.1 | openSUSE-2011-28 | 1       | recommended | needed
update-12.1 | openSUSE-2011-29 | 1       | recommended | needed

Very helpful information, right? ;-/

If possible, I'd like to have the patchnames from 11.x back, which at least somehow showed what a patch does.
Comment 1 Michael Andres 2011-12-01 09:12:26 UTC
Looks like maintenance changed the naming schema and I suppose they are not going to change it back.


We could try to inject the summary somewhere, but it's sometimes short

  Update for gbrainy
  update for bind
 
sometimes long

  "yast2 kerberos" and "yast2 ldap" do not generate valid sssd.conf for 
  multiple servers
  
  update for NetworkManager-gnome, NetworkManager, wpa_supplicant, 
  gnome-control-center

Given this, I'd tend to add it at the end after the status rather than embeding it somewhere in the inner table.

Repository  | Name             | Version | Category    | Status | Summary
------------+------------------+---------+-------------+--------+---------------
update-12.1 | openSUSE-2011-16 | 1       | recommended | needed | aaa_base: re..
update-12.1 | openSUSE-2011-17 | 1       | recommended | needed | xfce4-sessio..
Comment 2 Michael Schröder 2011-12-01 10:39:44 UTC
Why not make it closer to a search result:

who needs the "Repository"? Why is the status not a single letter?
Comment 3 Dirk Mueller 2011-12-03 08:19:48 UTC
What is the point in showing "Version"?

I also think it should be similar to a zypper "search" output (or even zypper search -s).
Comment 4 Michael Andres 2011-12-06 13:03:40 UTC
- "Repository" is there because people requested it.
- "Version" was interesting because we used to release multiple versions of a patch

@Dirk: Will we have the same problem on SLE11-SP2 too?
Comment 5 Michael Schröder 2011-12-06 13:22:02 UTC
Who is "people"? People also request that the repository is shown when doing a 'zypper search'. Please aim for consistency.

(I also think 'Version' should stay for the same reason)
Comment 6 Michael Andres 2011-12-06 14:52:18 UTC
Consistency, yes. We need to separate data retrieval and it's representation in the table. Currently the zypper query code knows about the table layout and also fills in the data. Without cleaning this any changes to the layout are painfull and error-prone.
Comment 7 Dirk Mueller 2011-12-06 16:10:22 UTC
No, at the moment the changes in patch naming are only planned for SLE12 and
beyond.
Comment 8 Michael Andres 2011-12-06 17:31:09 UTC
Quick fix in zypper-1.6.18. Summary appended.
Comment 9 Michael Andres 2011-12-07 08:45:21 UTC
.
Comment 10 Michael Andres 2012-03-23 08:15:06 UTC
*** Bug 592968 has been marked as a duplicate of this bug. ***