[game-data-packager] 07/18: Use dpkg --print-architecture so we don't need dpkg-dev

Simon McVittie smcv at debian.org
Thu Jan 22 12:40:41 UTC 2015


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

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

commit 27ef1ad972a61bda16b17c4a27260c61e0408dd3
Author: Simon McVittie <smcv at debian.org>
Date:   Thu Jan 22 10:32:12 2015 +0000

    Use dpkg --print-architecture so we don't need dpkg-dev
    
    I'm assuming here that the architecture of yquake2 is the same as the
    architecture of dpkg, which seems reasonable in practice.
---
 lib/game_data_packager/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index cd2d5ad..d2d318f 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1921,8 +1921,8 @@ class GameData(object):
 
     def get_architecture(self):
         if self._architecture is None:
-            self._architecture = subprocess.check_output(['dpkg-architecture',
-                '-qDEB_BUILD_ARCH']).strip().decode('ascii')
+            self._architecture = subprocess.check_output(['dpkg',
+                '--print-architecture']).strip().decode('ascii')
 
         return self._architecture
 

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