Bug 224677

Summary: zypper outputs richtext
Product: [openSUSE] openSUSE 10.2 Reporter: Andreas Jaeger <aj>
Component: libzyppAssignee: Josef Reidinger <jreidinger>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Major    
Priority: P5 - None CC: andreas.hanke, mvidner, nadvornik
Version: RC 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Jaeger 2006-11-29 20:27:07 UTC
Problem:

# zypper info zvbi
Restoring system sources...
Parsing metadata for SUSE-Linux-10.2-Updates...
Parsing metadata for ftp://dist.suse.de/install/stable-x86...
Parsing RPM database...


Information for package zvbi:

Catalog: ftp://dist.suse.de/install/stable-x86
Name: zvbi
Version: 0.2.16-37
Arch: i586
Installed: Yes
Status: out-of-date (version 0.2.16-36 installed)
Installed Size: 661.7 K
Summary: VBI Decoding Library
Description:
<!-- DT:Rich -->
<p>VBI stands for Vertical Blanking Interval, a gap between the image
data transmitted in an analog video signal. This gap is used to
transmit AM modulated data for various data services like Teletext
and Closed Caption.
</p><p>
The zvbi library provides routines to read from raw VBI sampling
devices, to demodulate raw to sliced VBI data, and to interpret
the data of several popular services.
</p>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The richtext output is wrong and should not happen.  Please parse this properly.
Comment 1 Martin Vidner 2006-12-05 08:08:16 UTC
OK, where is the spec for the description rich text? Is it XML? What is the schema (DTD), or what tags are allowed?

This is something like it but it describes the same info in a different format:
http://pdb.suse.de/doc/user/descriptions.html#pdb_attributes_descriptions_formatting
Comment 2 Vladimir Nadvornik 2006-12-05 10:19:34 UTC
The documentation is here:

http://pdb.suse.de/doc/xml-tags-doku.html

I am not sure if it is up-to-date. Anyway, you can always look at the sources,
here:

http://svn.suse.de/viewcvs/inttools/trunk/pdb/DB/pdbRichtext.pm?view=markup
Comment 3 Martin Vidner 2006-12-06 10:00:46 UTC
Oh fun.
- the docs is completely off target
- it is not even XML because it has "<hr>" instead of "<hr/>"
sed -n '/^+Des:/,/^-Des:/p' packages.en | \
  perl -n -e 'while (m/(<[^>]*>)/g) {print "$1\n";}' | sort -u
Comment 4 Vladimir Nadvornik 2006-12-06 10:24:21 UTC
Bug 154286 is related. In general it should not be problem to adjust the output as needed, however it must be accepted everywhere.
Comment 5 Martin Vidner 2007-02-27 13:32:51 UTC
Jano is taking over as the primary maintainer of zypper, I am a co-maintainer.
Comment 6 Andreas Jaeger 2007-03-29 18:46:13 UTC
Still happening in Alpha2plus.
Comment 7 Stanislav Visnovsky 2007-09-03 10:35:23 UTC
Any chance to get this fixed for openSUSE 10.3?
Comment 8 Jan Kupec 2007-09-03 10:48:46 UTC
I looked at it last friday. Not a trivial thing to do, the quickest way is to port the solution from yast ncurses :O( We don't have a library for handling the rich-text nor a proper documentation.

But if it is ok to fix it for beta 4, i would like to do it.
Comment 9 Andreas Jaeger 2007-09-03 11:22:33 UTC
There's no beta4!  After Beta3 comes RC1.
Comment 10 Stanislav Visnovsky 2007-09-03 13:36:56 UTC
See #9.
Comment 13 Josef Reidinger 2008-04-22 07:27:02 UTC
done in svn.

some example output:

(unordered list)
./zypper.sh info OpenEXR
Reading installed packages...


Information for package OpenEXR:

Repository: Main Repository (OSS)
Name: OpenEXR
Version: 1.4.0a-36
Arch: x86_64
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Installed: Yes
Status: up-to-date
Installed Size: 1.1 M
Summary: Library to Handle EXR Pictures in 16-Bit Floating-Point Format
Description: 
OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications.
- exrheader, a utility for dumping header information
- exrstdattr, a utility for modifying OpenEXR standard attributes
- exrmaketiled, for generating tiled and rip/mipmapped images
- exrenvmap, for creating OpenEXR environment maps
- exrmakepreview, for creating preview images for OpenEXR files

(ordered list)
jreidinger@zofie:~/zypp> sudo ./zypper.sh info  bbtools
Reading installed packages...


Information for package bbtools:

Repository: Main Repository (OSS)
Name: bbtools
Version: 2007.4.24-47
Arch: x86_64
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Installed: No
Status: not installed
Installed Size: 1.6 M
Summary: Tools for the Blackbox Window Manager
Description: 
Tools for the Blackbox window manager. Includes:Tools for the Blackbox window manager. Includes:
1) bbmail
2) bbkeys
3) bbppp
4) bbpager
5) bbdate
6) bbtime
7) bbsload
8) bbcd
9) bbweather
10) bbacpi
11) bbfreq

(paragraphs)
./zypper.sh info TeXmacs
Reading installed packages...


Information for package TeXmacs:

Repository: Main Repository (OSS)
Name: TeXmacs
Version: 1.0.6.9-54
Arch: x86_64
Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Installed: No
Status: not installed
Installed Size: 15.5 M
Summary: A Structured WYSIWYG Scientific Text Editor
Description: 
GNU TeXmacs is a free scientific text editor, inspiredby TeX and GNU Emacs. The editor allows you to write structured documentsvia a WYSIWYG (what-you-see-is-what-you-get) and user friendly interface.New styles can be created by the user. The program implements high-qualitytypesetting algorithms and TeX fonts, which help you to produceprofessional looking documents.

The high typesetting quality still goes through for automaticallygenerated formulas, which makes TeXmacs suitable as an interfacefor computer algebra systems. TeXmacs also supports the Guile/Schemeextension language, so that you may customize the interface andwrite your own extensions to the editor.

In the future, TeXmacs is planned to evolve towardsa complete scientific office suite, with spreadsheet capabilities,a technical drawing editor, and a presentation mode.
Comment 14 Josef Reidinger 2008-04-29 06:27:26 UTC
done in zypper 0.11.0-8
Comment 15 Jan Kupec 2008-04-29 08:10:26 UTC
*** Bug 300101 has been marked as a duplicate of this bug. ***