Bug 18206 - RFE desktop-file-install ouput formatting enhancement
Summary: RFE desktop-file-install ouput formatting enhancement
Status: RESOLVED FIXED
Alias: None
Product: desktop-file-utils
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Vincent Untz
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-24 09:24 UTC by R P Herrold
Modified: 2009-01-10 09:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description R P Herrold 2008-10-24 09:24:00 UTC
Description:

desktop-file-install needs to emit a characterization (of the form noted in: man 1 logger -- ie., warning, error, etc) along with the message, to permit 'grep' automated identification of warnings and errors

Example of the problem:

see:

https://bugzilla.redhat.com/show_bug.cgi?id=459924#c16

where the warning messages were overlooked, because of the absence of such notation

[herrold@centos-5 homestead]$ desktop-file-install --vendor=orc
--dir=/var/tmp/homestead-0.86-1orc-root-herrold/usr/share/applications
/home/herrold/rpmbuild/SOURCES/homestead.desktop

/home/herrold/rpmbuild/SOURCES/homestead.desktop: missing encoding  (guessed
UTF-8)

/home/herrold/rpmbuild/SOURCES/homestead.desktop: key "Categories" string list
not semicolon-terminated, fixing
[herrold@centos-5 homestead]$

Proposal:

The expected output should have been of the form

[herrold@centos-5 homestead]$ desktop-file-install --vendor=orc
--dir=/var/tmp/homestead-0.86-1orc-root-herrold/usr/share/applications
/home/herrold/rpmbuild/SOURCES/homestead.desktop

/home/herrold/rpmbuild/SOURCES/homestead.desktop: warning: missing encoding  (guessed
UTF-8)

/home/herrold/rpmbuild/SOURCES/homestead.desktop: warning: key "Categories" string list
not semicolon-terminated, fixing
[herrold@centos-5 homestead]$


Benefit:

Automated, and indeed careful builders can then more readily SEE and FIX warnings and errors.

-- Russ herrold
Comment 1 Vincent Untz 2009-01-10 09:19:59 UTC
Fixed in CVS. Not that your example was with an old version of desktop-file-utils, since it says something about the Encoding key (which is a deprecated key now).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.