SILENT KILLERPanel

Current Path: > > > > usr > lib > python3.6 > > site-packages > dnf-plugins


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: ////usr/lib/python3.6//site-packages/dnf-plugins

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
builddep.py File 9346 bytes April 08 2024 10:02:45.
changelog.py File 4967 bytes April 12 2021 15:30:34.
config_manager.py File 10885 bytes April 12 2021 15:30:34.
copr.py File 30298 bytes April 08 2024 10:02:45.
debug.py File 12565 bytes April 12 2021 15:30:34.
debuginfo-install.py File 11084 bytes April 12 2021 15:30:34.
download.py File 12330 bytes April 12 2021 15:30:34.
etckeeper.py File 1286 bytes July 15 2025 11:26:00.
generate_completion_cache.py File 3948 bytes April 12 2021 15:30:34.
groups_manager.py File 13532 bytes April 08 2024 10:02:45.
needs_restarting.py File 11872 bytes April 08 2024 10:02:46.
repoclosure.py File 6811 bytes April 12 2021 15:30:34.
repodiff.py File 11475 bytes April 12 2021 15:30:34.
repograph.py File 4092 bytes April 12 2021 15:30:34.
repomanage.py File 10570 bytes April 08 2024 10:02:45.
reposync.py File 14648 bytes April 08 2024 10:02:45.
spacewalk.py File 14209 bytes February 26 2025 09:26:06.
system_upgrade.py File 26793 bytes April 08 2024 10:02:45.
universal_hooks.py File 5919 bytes October 11 2020 23:57:51.
versionlock.py File 12317 bytes April 08 2024 10:02:45.

Reading File: ////usr/lib/python3.6//site-packages/dnf-plugins/etckeeper.py

# etckeeper.py, support etckeeper for dnf
#
# Copyright (C) 2014 Peter Listiak
# https://github.com/plistiak/dnf-etckeeper
#
# Later modifications by Petr Spacek:
# Distutils code below was copied from etckeeper-bzr distributed with v1.15
#

import logging
import subprocess
import dnf

logger = logging.getLogger('dnf.plugin')


class Etckeeper(dnf.Plugin):

    name = 'etckeeper'

    def _run_command(self, command):
        logger.debug('Etckeeper plugin: %s', command)
        try:
            with open("/dev/null", "wb") as devnull:
                ret = subprocess.call(("etckeeper", command),
                                      stdout=devnull, stderr=devnull,
                                      close_fds=True)
                if ret != 0:
                    raise dnf.exceptions.Error('"etckeeper %s" returned: %d' % (command, ret))
        except OSError as err:
            logger.warning('Failed to run "etckeeper %s": %s' % (command, err))

    def resolved(self):
        self._run_command("pre-install")

    def transaction(self):
        self._run_command("post-install")

if __name__ == "__main__":
    from distutils.core import setup
    setup(name="dnf-etckeeper",
          packages=["dnf-plugins"],
          package_dir={"dnf-plugins":"etckeeper-dnf"})

SILENT KILLER Tool