From: Michael Tremer Date: Tue, 20 Apr 2021 12:39:50 +0000 (+0000) Subject: python: Drop old distro module X-Git-Tag: 0.9.28~1285^2~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f517d6b12388e9e55f2cb4516d322fbf7f238794;p=pakfire.git python: Drop old distro module Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 5fcf1771e..357caf844 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/src/pakfire/config.py b/src/pakfire/config.py index 96611d6e4..c0cecbefd 100644 --- a/src/pakfire/config.py +++ b/src/pakfire/config.py @@ -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(): diff --git a/src/pakfire/system.py b/src/pakfire/system.py index f83c723fa..631ee33b9 100644 --- a/src/pakfire/system.py +++ b/src/pakfire/system.py @@ -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()