[game-data-packager] 01/01: install_method defaults to '', not None

Alexandre Detiste detiste-guest at moszumanska.debian.org
Fri Jan 8 13:07:33 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 3cee297147e4c5cddcb9d0f2794a96a38ce31932
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Fri Jan 8 14:06:58 2016 +0100

    install_method defaults to '', not None
---
 game_data_packager/packaging/rpm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game_data_packager/packaging/rpm.py b/game_data_packager/packaging/rpm.py
index 2e72676..6ccf655 100644
--- a/game_data_packager/packaging/rpm.py
+++ b/game_data_packager/packaging/rpm.py
@@ -57,7 +57,7 @@ class RpmPackaging(PackagingSystem):
     def install_packages(self, rpms, method=None, gain_root='su'):
         """Install one or more packages (a list of filenames)."""
 
-        if method is None:
+        if not method:
             method = 'rpm'
 
         if method == 'dnf':

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