[meld] build_helpers: Don't install all files in icon folders, just png and svg
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] build_helpers: Don't install all files in icon folders, just png and svg
- Date: Sat, 9 Nov 2013 22:00:03 +0000 (UTC)
commit ac99b9db66dea4fec4abc561bf82f0dfb74fbc8a
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Nov 8 06:29:46 2013 +1000
build_helpers: Don't install all files in icon folders, just png and svg
meld/build_helpers.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/meld/build_helpers.py b/meld/build_helpers.py
index c915840..d5dd96a 100644
--- a/meld/build_helpers.py
+++ b/meld/build_helpers.py
@@ -93,10 +93,9 @@ class build_icons(distutils.cmd.Command):
for theme in glob.glob(os.path.join(self.icon_dir, "*")):
for size in glob.glob(os.path.join(theme, "*")):
for category in glob.glob(os.path.join(size, "*")):
- icons = []
- for icon in glob.glob(os.path.join(category,"*")):
- if not os.path.islink(icon):
- icons.append(icon)
+ icons = (glob.glob(os.path.join(category, "*.png")) +
+ glob.glob(os.path.join(category, "*.svg")))
+ icons = [icon for icon in icons if not os.path.islink(icon)]
if not icons:
continue
data_files.append(("share/icons/%s/%s/%s" %
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]