]> git.ipfire.org Git - pakfire.git/commitdiff
python: Drop old distro module
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Apr 2021 12:39:50 +0000 (12:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Apr 2021 12:39:50 +0000 (12:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/pakfire/config.py
src/pakfire/system.py

index 5fcf1771e53a64b1d3c1ba95fcb5f4d09eabfa39..357caf844c576a0ac312e0031410d6a27e5ad202 100644 (file)
@@ -121,7 +121,6 @@ pakfire_PYTHON = \
        src/pakfire/config.py \
        src/pakfire/constants.py \
        src/pakfire/daemon.py \
-       src/pakfire/distro.py \
        src/pakfire/errors.py \
        src/pakfire/http.py \
        src/pakfire/hub.py \
index 96611d6e4898340803dbc40f8035691677bb28bc..c0cecbefdd1019d92d6cecc5bc71c84de54a985e 100644 (file)
@@ -28,8 +28,6 @@ import socket
 log = logging.getLogger("pakfire.config")
 log.propagate = 1
 
-from . import distro
-
 from .constants import *
 from .i18n import _
 
@@ -95,10 +93,6 @@ class Config(object):
 
                                log.debug("    %-20s: %s" % (option, value))
 
-       @property
-       def distro(self):
-               return distro.Distribution(self._config["distro"])
-
        def get_repos(self):
                repos = []
                for section in self._config.sections():
index f83c723fa21c28134fc11b8bc2c1b5217e5dd101..631ee33b913dacfd77eb2fb793785648eaf137a3 100644 (file)
@@ -24,7 +24,6 @@ import os
 import socket
 
 from . import _pakfire
-from . import distro
 from .i18n import _
 
 class System(object):
@@ -32,10 +31,6 @@ class System(object):
                Class that grants access to several information about
                the system this software is running on.
        """
-       def __init__(self):
-               # Load the system's distribution
-               self.distro = distro.Distribution()
-
        @property
        def hostname(self):
                hn = socket.gethostname()