Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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 \
log = logging.getLogger("pakfire.config")
log.propagate = 1
-from . import distro
-
from .constants import *
from .i18n import _
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():
import socket
from . import _pakfire
-from . import distro
from .i18n import _
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()