[game-data-packager] 02/02: fix __init__ signatures in packaging/rpm.py
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 435cee5cbefa0040a6901f5238c855b4f37ec032
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Jan 25 10:07:38 2016 +0100
fix __init__ signatures in packaging/rpm.py
---
game_data_packager/packaging/rpm.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/packaging/rpm.py b/game_data_packager/packaging/rpm.py
index 1f056f9..ecb113f 100644
--- a/game_data_packager/packaging/rpm.py
+++ b/game_data_packager/packaging/rpm.py
@@ -113,7 +113,7 @@ class DnfPackaging(RpmPackaging):
}
def __init__(self):
- super(DnfPackaging, self).__init__()
+ super(DnfPackaging, self).__init__('fedora')
self.available = None
def read_architecture(self):
@@ -159,6 +159,9 @@ class ZypperPackaging(RpmPackaging):
'unrar-nonfree': 'unrar',
}
+ def __init__(self):
+ super(ZypperPackaging, self).__init__('suse')
+
def is_available(self, package):
proc = subprocess.Popen(['zypper', 'info', package],
universal_newlines=True,
@@ -193,6 +196,9 @@ class UrpmiPackaging(RpmPackaging):
'unrar-nonfree': 'unrar',
}
+ def __init__(self):
+ super(UrpmiPackaging, self).__init__('mageia')
+
def is_available(self, package):
return 0 == subprocess.call(['urpmq', package],
stdout=subprocess.DEVNULL,
--
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