Bug 152210 - system-config-keyboard has errors in %post and %postun scripts
Summary: system-config-keyboard has errors in %post and %postun scripts
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-keyboard
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact:
: 152229 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2005-03-26 13:46 UTC by Robert Scheck
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 1.2.5-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-03-29 14:56:45 UTC

Attachments (Terms of Use)

Description Robert Scheck 2005-03-26 13:46:42 UTC
Description of problem:
system-config-keyboard has errors in %post and %postun scripts.

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

How reproducible:
Everytime, install or uninstall the package.

Actual results:
The current %post and %postun sections should be changed to:

touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
  gtk-update-icon-cache %{_datadir}/icons/hicolor >> /dev/null

The changes are:
- "[ -x" instead of "[-x]", which fails
- piping the output of gtk-update-icon-cache to /dev/null

Expected results:
This change or better...

Comment 1 Warren Togami 2005-03-27 21:31:27 UTC
*** Bug 152229 has been marked as a duplicate of this bug. ***

Comment 2 Robert Scheck 2005-03-29 14:56:45 UTC
Fixed in -3, closing now.

Comment 3 Clyde E. Kunkel 2005-03-29 16:18:52 UTC
As of 3-29-05 rawhide, the error is now:
  Cleanup   : system-config-keyboard       ####################### [59/87]
/var/tmp/rpm-tmp.49858: line 2: [-x: command not found

Comment 4 Robert Scheck 2005-03-29 16:21:44 UTC
Use a synced mirror which has Rawhide of today, then everything will work fine.

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