[game-data-packager] 01/02: make tests/deb.py pass on Fedora
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Mon Jan 25 09:08:00 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 9c8867d7666a9b1dd7322872514074aedd33502a
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Jan 25 10:06:54 2016 +0100
make tests/deb.py pass on Fedora
---
game_data_packager/packaging/deb.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/packaging/deb.py b/game_data_packager/packaging/deb.py
index ef4650b..63f7e0d 100644
--- a/game_data_packager/packaging/deb.py
+++ b/game_data_packager/packaging/deb.py
@@ -20,7 +20,12 @@ import logging
import os
import subprocess
-from debian.debian_support import Version
+
+try:
+ from debian.debian_support import Version
+except ImportError:
+ # make check
+ from distutils.version import LooseVersion as Version
from . import (PackagingSystem)
from ..util import (check_output, mkdir_p, run_as_root)
--
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