[game-data-packager] 01/01: debian/control: keep only strongest depedency

Alexandre Detiste detiste-guest at moszumanska.debian.org
Mon Jan 11 13:37:54 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 3a6953379491a3c7587d1e1521e722b33eb26000
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Mon Jan 11 14:36:55 2016 +0100

    debian/control: keep only strongest depedency
    
    this way the default "engine" -> 'recommends'
    can be overriden as "depends" if needed
---
 game_data_packager/build.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index af73c78..1bccb87 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1828,6 +1828,11 @@ class PackagingTask(object):
         # Shortcut: if A Replaces B, A automatically Conflicts B
         dep['conflicts'] |= dep['replaces']
 
+        # keep only strongest depedency
+        dep['recommends'] -= dep['depends']
+        dep['suggests'] -= dep['recommends']
+        dep['suggests'] -= dep['depends']
+
         for k, v in dep.items():
             if v:
                 control[k.title()] = ', '.join(sorted(v))

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