Bug 149515 - update fails if last file in /usr/share/icons/* is not a dir
Summary: update fails if last file in /usr/share/icons/* is not a dir
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-icon-theme
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Zeuthen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-23 18:55 UTC by Alexandre Oliva
Modified: 2013-03-06 03:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-04-04 05:00:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexandre Oliva 2005-02-23 18:55:14 UTC
If the last entry in the expansion of /usr/share/icons/* in the %post
of gnome-icon-theme and redhat-artwork, the install will fail because
gtk-update-icon-cache will exit with a non-zero status when not given
a directory.  On my case, the last entry is xpdf.png, on an
`everything' install of rawhide.  I had more than one version of these
packages installed becuase they'd fail to update correctly.

I suggest replacing /usr/share/icons/* with /usr/share/icons/*/, if
gtk-update-icon-cache accepts that, or running test ! -d $dir ||
gtk-update-icon-cache.

Version-Release number of selected component (if applicable):
gnome-icon-theme-2.9.91-1 redhat-artwork-0.120-5

How reproducible:
Always

Comment 1 Matthias Clasen 2007-04-04 05:00:26 UTC
We are doing the -d $dir test nowadays.


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