Mailinglist Archive: yast-devel (26 mails)

< Previous Next >
Re: [yast-devel] Displaying Package Descriptions
  • From: "Tim Serong" <tserong@xxxxxxxxxx>
  • Date: Wed, 08 Sep 2010 04:42:59 -0600
  • Message-id: <4C87F5530200000A0001D7DD@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On 9/8/2010 at 06:31 PM, Karl Eichwalder <ke@xxxxxxx> wrote:
Johannes Meixner <jsmeix@xxxxxxx> writes:

I think it used to work that way in the past. At least, it was possible
to pre-format the texts in the PDB somehow and it got properly exported
from the PDB suitable for yast and (in the very past) for the package
list on the Web.

For current products the PDB is no longer used at all
so that any kind of special pre-format is no longer available.

Therefore YaST (or whatever tool which shows RPM description texts)
must be prepared to display plain text descriptions correctly.

Yes, that's the problem. Is this format ("plain text") described
somewhere? As you said previously, yast probably honors two \n on a row
as a paragraph separator.

# rpm -q --qf '%{DESCRIPTION}' $PACKAGE | sed \
-e 's/\&/\&amp;/g' \
-e 's/</\&lt;/g' \
-e 's/>/\&gt;/g' | awk \
'BEGIN { print "<pre>" } { print } END { print "</pre>" }'


Seriously, yeah, plain text is notoriously difficult to interpret...


Tim Serong <tserong@xxxxxxxxxx>
Senior Clustering Engineer, OPS Engineering, Novell Inc.

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups