Python wrapper for libalpm and python implementation of pacman (pycman). Backported to Python 2.
104 lines
2.9 KiB
Diff
104 lines
2.9 KiB
Diff
From 5232589a05a30db625c10a1278cd4f0cbf66b294 Mon Sep 17 00:00:00 2001
|
|
From: Ray Donnelly <mingw.android@gmail.com>
|
|
Date: Fri, 11 Mar 2016 11:58:17 +0000
|
|
Subject: [PATCH 3/5] Python2 compat: pycman: from __future__ import
|
|
print_function
|
|
|
|
---
|
|
pycman/action_database.py | 1 +
|
|
pycman/action_deptest.py | 1 +
|
|
pycman/action_query.py | 1 +
|
|
pycman/action_remove.py | 1 +
|
|
pycman/action_sync.py | 1 +
|
|
pycman/action_upgrade.py | 1 +
|
|
pycman/action_version.py | 1 +
|
|
7 files changed, 7 insertions(+)
|
|
|
|
diff --git pycman/action_database.py pycman/action_database.py
|
|
index 6774ea7..5cecc65 100755
|
|
--- pycman/action_database.py
|
|
+++ pycman/action_database.py
|
|
@@ -25,6 +25,7 @@ This script allows to modify install reasons for packages in local
|
|
database.
|
|
"""
|
|
|
|
+from __future__ import print_function
|
|
import sys
|
|
import pyalpm
|
|
from pycman import config
|
|
diff --git pycman/action_deptest.py pycman/action_deptest.py
|
|
index c9c4ccf..16a8c2e 100755
|
|
--- pycman/action_deptest.py
|
|
+++ pycman/action_deptest.py
|
|
@@ -25,6 +25,7 @@ This script checks whether specified dependencies are satisfied
|
|
and prints out a list of those which are missing.
|
|
"""
|
|
|
|
+from __future__ import print_function
|
|
import sys
|
|
import pyalpm
|
|
from pycman import config
|
|
diff --git pycman/action_query.py pycman/action_query.py
|
|
index a8fb41b..7fb2642 100755
|
|
--- pycman/action_query.py
|
|
+++ pycman/action_query.py
|
|
@@ -24,6 +24,7 @@ A Python implementation of pacman -Q
|
|
This script displays information about installed packages.
|
|
"""
|
|
|
|
+from __future__ import print_function
|
|
import os
|
|
import sys
|
|
|
|
diff --git pycman/action_remove.py pycman/action_remove.py
|
|
index 62303c1..53c6c16 100755
|
|
--- pycman/action_remove.py
|
|
+++ pycman/action_remove.py
|
|
@@ -25,6 +25,7 @@ This script uninstalls packages. Various options control
|
|
the effect on dependencies of/on given targets.
|
|
"""
|
|
|
|
+from __future__ import print_function
|
|
import sys
|
|
import traceback
|
|
import pyalpm
|
|
diff --git pycman/action_sync.py pycman/action_sync.py
|
|
index 82fda91..e5845d4 100755
|
|
--- pycman/action_sync.py
|
|
+++ pycman/action_sync.py
|
|
@@ -25,6 +25,7 @@ This script displays information about packages available in repositories,
|
|
and is also used to install/upgrade/remove them.
|
|
"""
|
|
|
|
+from __future__ import print_function
|
|
import sys
|
|
|
|
import pyalpm
|
|
diff --git pycman/action_upgrade.py pycman/action_upgrade.py
|
|
index fc3b8df..4d064fd 100755
|
|
--- pycman/action_upgrade.py
|
|
+++ pycman/action_upgrade.py
|
|
@@ -25,6 +25,7 @@ This script installs packages from tarballs. Various options control
|
|
the effect of the transaction.
|
|
"""
|
|
|
|
+from __future__ import print_function
|
|
import sys
|
|
import traceback
|
|
import pyalpm
|
|
diff --git pycman/action_version.py pycman/action_version.py
|
|
index 05135cd..409137e 100755
|
|
--- pycman/action_version.py
|
|
+++ pycman/action_version.py
|
|
@@ -24,6 +24,7 @@ A Python implementation of pacman -V
|
|
This script prints version information about pycman and pyalpm.
|
|
"""
|
|
|
|
+from __future__ import print_function
|
|
import pyalpm
|
|
|
|
VERSION_STRING = """
|
|
--
|
|
2.7.1
|
|
|