Bug 201827 - XaraLX should suppress update-mime-database output
Summary: XaraLX should suppress update-mime-database output
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: XaraLX
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul F. Johnson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-09 05:21 UTC by Alex Lancaster
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: XaraLX-0.7-3.fc5.r1614
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-09 12:08:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alex Lancaster 2006-08-09 05:21:58 UTC
Description of problem:
Xara should modify the update-mime-database and pipe the output to /dev/null
2>&1 to prevent the output.  

Currently it has:

rpm -q XaraLX --scripts
postinstall scriptlet (using /bin/sh):
if which update-mime-database>/dev/null 2>&1; then \
   update-mime-database /usr/share/mime; \
fi
postuninstall scriptlet (using /bin/sh):
if which update-mime-database>/dev/null 2>&1; then \
   update-mime-database /usr/share/mime; \
fi


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. yum install XaraLX

Actual results:
Committing transaction...
Preparing...                    ######################################## [  0%]
   1:Installing XaraLX          ######################################## [ 50%]
Output from XaraLX-0.7-2.fc5.r1614@i386:
***
* Updating MIME database in /usr/share/mime...
Wrote 471 strings at 20 - 2750
Wrote aliases at 2750 - 2904
Wrote parents at 2904 - 2f64
Wrote literal globs at 2f64 - 2fc0
Wrote suffix globs at 2fc0 - 6438
Wrote full globs at 6438 - 645c
Wrote magic at 645c - bd44
Wrote namespace list at bd44 - bd54
***

Expected results:
Committing transaction...
Preparing...                    ######################################## [  0%]
   1:Installing XaraLX          ######################################## [ 50%]


Additional info:

Comment 1 Paul F. Johnson 2006-08-09 10:42:09 UTC
Fixed - thanks for the report

Comment 2 Alex Lancaster 2006-08-09 11:40:40 UTC
Hmm, doesn't appear to be in CVS:

http://cvs.fedora.redhat.com/viewcvs/rpms/XaraLX/FC-5/XaraLX.spec?root=extras&rev=1.1&view=auto

or in the build queue.  Re-opening until it appears in repo to make sure it
doesn't get lost.

Comment 3 Paul F. Johnson 2006-08-09 12:08:52 UTC
I've just committed it to extras (in the last 10 minutes!).


Note You need to log in before you can comment on or make changes to this bug.