[game-data-packager] 02/02: doom_common: also install uncompressed .svg icons

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue Jan 5 09:05:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 187acea09236b439c79bdf9e4defec140a83fc68
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Tue Jan 5 10:04:52 2016 +0100

    doom_common: also install uncompressed .svg icons
---
 game_data_packager/games/doom_common.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/game_data_packager/games/doom_common.py b/game_data_packager/games/doom_common.py
index 59d3c11..f9be0df 100644
--- a/game_data_packager/games/doom_common.py
+++ b/game_data_packager/games/doom_common.py
@@ -127,13 +127,14 @@ class DoomTask(PackagingTask):
             else:
                 raise AssertionError('doom-common.png should have existed')
 
-            from_ = os.path.splitext(from_)[0] + '.svgz'
-            if os.path.exists(from_):
-                svgdir = os.path.join(destdir,
+            for ext in ('.svgz', '.svg'):
+                from_ = os.path.splitext(from_)[0] + ext
+                if os.path.exists(from_):
+                    svgdir = os.path.join(destdir,
                                       'usr/share/icons/hicolor/scalable/apps')
-                mkdir_p(svgdir)
-                install_data(from_,
-                    os.path.join(svgdir, '%s.svgz' % desktop_file))
+                    mkdir_p(svgdir)
+                    install_data(from_,
+                        os.path.join(svgdir, desktop_file + ext))
 
             docdir = os.path.join(destdir, 'usr/share/doc/%s' % package.name)
             mkdir_p(docdir)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list