[game-data-packager] 01/01: fedora: fix little refactor glitches

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue Jan 5 13:29:41 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 2e17d7c0431967b8ef97e3623a51d01be798ec26
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Tue Jan 5 14:29:18 2016 +0100

    fedora: fix little refactor glitches
---
 game_data_packager/packaging/rpm.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/game_data_packager/packaging/rpm.py b/game_data_packager/packaging/rpm.py
index 929992a..85758f8 100644
--- a/game_data_packager/packaging/rpm.py
+++ b/game_data_packager/packaging/rpm.py
@@ -63,7 +63,7 @@ class RpmPackaging(PackagingSystem):
 
 class DnfPackaging(RpmPackaging):
     def __init__(self):
-        self.__available = None
+        self.available = None
 
     def is_available(self, package):
         if self.available is None:
@@ -124,10 +124,10 @@ class ZypperPackaging(RpmPackaging):
 
 def get_distro_packaging():
     if os.path.isfile('/etc/redhat-release'):
-        return ZypperPackaging()
+        return DnfPackaging()
 
     if os.path.isfile('/etc/SuSE-release'):
-        return DnfPackaging()
+        return ZypperPackaging()
 
     try:
         maybe = DnfPackaging()

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