[game-data-packager] 01/01: copyright: add extension family (.wl6, .pk3, .lfl, ...)

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue Mar 10 15:02:14 UTC 2015


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 0ac6af6cb396709522f5054c700ffdc48a475c74
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Tue Mar 10 16:00:06 2015 +0100

    copyright: add extension family (.wl6, .pk3, .lfl, ...)
---
 data/doom3.copyright           | 22 ----------------------
 game_data_packager/__init__.py |  5 +++++
 2 files changed, 5 insertions(+), 22 deletions(-)

diff --git a/data/doom3.copyright b/data/doom3.copyright
deleted file mode 100644
index 86f9d01..0000000
--- a/data/doom3.copyright
+++ /dev/null
@@ -1,22 +0,0 @@
-This package was generated using game-data-packager.
-Copyright © 2008-2013 Jonathan Dowland <jmtd at debian.org>.
-
-The pk3 files under "/usr/share/games" are user-supplied
-files that are not covered by the copyright or licence of this
-package; they are copyright (c) 1993-2012 by id Software LLC, all rights
-reserved.
-
-The remainder of this package is covered by the following
-Licence:
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; version 2 of the License.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-On Debian GNU/Linux systems, the complete text of the GNU General Public
-License can be found in /usr/share/common-licenses/GPL-2.
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 9c60bb8..f123220 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1559,6 +1559,7 @@ class GameData(object):
                     'and must not be redistributed.\n\n')
 
             count_usr = 0
+            exts = set()
             count_doc = 0
             for f in package.install | package.optional:
                  if self.file_status[f] is FillResult.IMPOSSIBLE:
@@ -1571,9 +1572,13 @@ class GameData(object):
                      # doesn't have to be a .wad, ROTT's EXTREME.RTL
                      # or any other one-datafile .deb would qualify too
                      main_wad = self.files[f].install_as
+                     exts.add(os.path.splitext(main_wad.lower())[1])
 
             if count_usr == 1:
                 o.write('"/%s/%s"\n' % (package.install_to, main_wad))
+            elif len(exts) == 1:
+                o.write('The %s files under "/%s/"\n' %
+                        (list(exts)[0] ,package.install_to))
             else:
                 o.write('The files under "/%s/"\n' % package.install_to)
 

-- 
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