[game-data-packager] 02/02: doom2-masterlevels: lower dependency on gdp generated .deb to Recommends:

Alexandre Detiste detiste-guest at moszumanska.debian.org
Wed Apr 15 09:55:24 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 ca461578bc45717945e4375f05a1371ea5af7d4d
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Apr 15 11:53:10 2015 +0200

    doom2-masterlevels: lower dependency on gdp generated .deb to Recommends:
    
    this is need to let the doom2-masterlevels package migrate to testing
    
    the launcher now test for these files at run-time and give
    advice on how to buy them if they are missing
---
 debian/control                |  6 +++++-
 runtime/doom2-masterlevels.py | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index f83e70a..e3a9bf5 100644
--- a/debian/control
+++ b/debian/control
@@ -88,12 +88,16 @@ Description: Installer for game data files
 
 Package: doom2-masterlevels
 Depends: chocolate-doom | doom-engine,
-	doom2-masterlevels-wad,
 	python3,
 	python3-gi,
 	gir1.2-gtk-3.0,
 	${python3:Depends},
 	${misc:Depends},
+# this package is useless without the .wad files;
+# still we can't "Depends:" on this,
+# to enable migration to testing
+Recommends:
+	doom2-masterlevels-wad,
 Architecture: all
 Multi-Arch: foreign
 Description: graphical launcher for DOOM II Master Levels
diff --git a/runtime/doom2-masterlevels.py b/runtime/doom2-masterlevels.py
index 70e4d6d..2a439f5 100755
--- a/runtime/doom2-masterlevels.py
+++ b/runtime/doom2-masterlevels.py
@@ -48,6 +48,25 @@ levels = {
     'virgil.wad':   ( 3, "Virgil's Lead: 3rd Canto of Inferno"    , "MAP03:_Virgil%27s_Lead_(Master_Levels)"),
 }
 
+for level in levels.keys():
+    level = level.strip('*')
+    fullpath = os.path.join('/usr/share/games/doom/', level)
+    if not os.path.isfile(fullpath):
+        print('\n')
+        message = fullpath + " is missing !\n\n" \
+                  "This launcher needs the .wad files from DOOM 2 Master Levels\n" \
+                  "These can be for example bought on Steam:\n" \
+                  "http://store.steampowered.com/app/9160/ ;\n" \
+                  "or found on 'Doom 3: Resurrection of Evil' Xbox game disc\n\n" \
+                  "The data then need to be put at the right location,\n" \
+                  "You can use game-data-packager(6) to automate this task.\n" \
+                  "It will also automatically pick up the data downloaded by a\n" \
+                  "windows Steam instance running through Wine."
+        md = Gtk.MessageDialog(None, 0, Gtk.MessageType.WARNING,
+                               Gtk.ButtonsType.OK, message)
+        md.run()
+        exit(message)
+
 window = Gtk.Window()
 window.set_default_size(1020, 800)
 window.connect("destroy", lambda q: Gtk.main_quit())

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