summaryrefslogtreecommitdiffstats
path: root/aptsources/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--aptsources/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/aptsources/__init__.py b/aptsources/__init__.py
new file mode 100644
index 0000000..2ccf4fc
--- /dev/null
+++ b/aptsources/__init__.py
@@ -0,0 +1,6 @@
+import apt_pkg
+
+# init the package system, but do not re-initialize config
+if "APT" not in apt_pkg.config:
+ apt_pkg.init_config()
+apt_pkg.init_system()