[game-data-packager] 01/01: add links to dnf python documentation
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Wed Jan 6 15:16:17 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 6051b5f0a61520a7b3f9e341cd400483b59a2063
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Wed Jan 6 16:15:16 2016 +0100
add links to dnf python documentation
I would had filed a bug,
but I can't file a bug against
a not-yet-existing package.
---
game_data_packager/packaging/rpm.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/game_data_packager/packaging/rpm.py b/game_data_packager/packaging/rpm.py
index 36f2201..163e50d 100644
--- a/game_data_packager/packaging/rpm.py
+++ b/game_data_packager/packaging/rpm.py
@@ -61,6 +61,17 @@ class RpmPackaging(PackagingSystem):
elif method == 'rpm':
run_as_root(['rpm', '-U'] + list(rpms), gain_root)
+
+# XXX: dnf is written in python3 and has a stable public api,
+# it is likely faster to use it instead of calling 'dnf' pgm.
+#
+# I just can't make sense of it or of these "simple examples"
+#
+# http://dnf.readthedocs.org/en/latest/api_base.html
+# https://github.com/timlau/dnf-apiex
+#
+# As install_packages() needs root, we need to use the 'dnf' pgm
+
class DnfPackaging(RpmPackaging):
install_cmd = 'dnf install'
package_map = {
--
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