[game-data-packager] 01/01: wolf3d: move package description to YAML

Alexandre Detiste detiste-guest at moszumanska.debian.org
Thu Oct 8 10:16:20 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 3ab642ceb0614cc0626e657e6bc55236c21bb001
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Thu Oct 8 12:15:44 2015 +0200

    wolf3d: move package description to YAML
---
 data/rott.yaml                   |  1 +
 data/wolf3d-demo-data.control.in |  4 ----
 data/wolf3d.yaml                 | 26 ++++++++++++++++++++++++++
 game_data_packager/build.py      |  3 ++-
 4 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/data/rott.yaml b/data/rott.yaml
index 22ef75a..032999d 100644
--- a/data/rott.yaml
+++ b/data/rott.yaml
@@ -38,6 +38,7 @@ packages:
     longname: "Rise of the Triad: Dark War"
     description: |
       This doesn't include the shareware episode "The HUNT Begins".
+
       Use the 'rott-commercial' command to play this game.
     debian:
       depends: rott-data
diff --git a/data/wolf3d-demo-data.control.in b/data/wolf3d-demo-data.control.in
deleted file mode 100644
index 17fed58..0000000
--- a/data/wolf3d-demo-data.control.in
+++ /dev/null
@@ -1,4 +0,0 @@
-Description: Game data for Wolfenstein 3D
- Wolfenstein 3D requires game data to play. This package contains
- the game data from the shareware episode of Wolfenstein 3D and
- was generated using the "game-data-packager" program.
diff --git a/data/wolf3d.yaml b/data/wolf3d.yaml
index 44c18e6..5dc0078 100644
--- a/data/wolf3d.yaml
+++ b/data/wolf3d.yaml
@@ -9,6 +9,10 @@ wiki: Wolfenstein_3D
 
 packages:
   wolf3d-demo-data:
+    description: |
+      The demo only provides the first episode
+      'Escape from Castle Wolfenstein'
+      out of the six episodes of the full game.
     demo_for:
     - wolf3d-v12-data
     - wolf3d-v14-data
@@ -31,6 +35,18 @@ packages:
 
   wolf3d-v12-data:
     longname: Wolfenstein 3D v1.2
+    description: |
+      The bugs fixed in v1.4 are also fixed when playing v1.2 with wolf4sdl.
+
+      This version include the original levels:
+       * Episode 1: Escape from Castle Wolfenstein
+       * Episode 2: Operation: Eisenfaust
+       * Episode 3: Die, Fuhrer, Die!
+
+      as well as the 'Nocturnal Missions':
+       * Episode 4: Dark Secret
+       * Episode 5: Trail of the Madman
+       * Episode 6: Confrontation
     better_version: wolf3d-v14-data
     debian:
       provides: wolf3d-data
@@ -49,6 +65,16 @@ packages:
 
   wolf3d-v14-data:
     longname: Wolfenstein 3D v1.4
+    description: |
+      This version include the original levels:
+       * Episode 1: Escape from Castle Wolfenstein
+       * Episode 2: Operation: Eisenfaust
+       * Episode 3: Die, Fuhrer, Die!
+
+      as well as the 'Nocturnal Missions':
+       * Episode 4: Dark Secret
+       * Episode 5: Trail of the Madman
+       * Episode 6: Confrontation
     debian:
       provides: wolf3d-data
       #conflicts: wolf3d-data
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 3e24cdb..ccf658c 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1686,7 +1686,8 @@ class PackagingTask(object):
 
             if package.description:
                 for line in package.description.splitlines():
-                    long_desc += (' ' + line.rstrip() + '\n .\n')
+                    line = line.rstrip() or '.'
+                    long_desc += (' ' + line + '\n')
 
             if self.game.genre:
                 long_desc += '  Genre: ' + self.game.genre + '\n'

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