[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.217.112: ~ $
# 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"})

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
builddep.py File 9.13 KB 0644
changelog.py File 4.85 KB 0644
config_manager.py File 10.63 KB 0644
copr.py File 29.59 KB 0644
debug.py File 12.27 KB 0644
debuginfo-install.py File 10.82 KB 0644
download.py File 12.04 KB 0644
etckeeper.py File 1.26 KB 0644
generate_completion_cache.py File 3.86 KB 0644
groups_manager.py File 13.21 KB 0644
needs_restarting.py File 11.59 KB 0644
repoclosure.py File 6.65 KB 0644
repodiff.py File 11.21 KB 0644
repograph.py File 4 KB 0644
repomanage.py File 10.32 KB 0644
reposync.py File 14.3 KB 0644
system_upgrade.py File 26.17 KB 0644
universal_hooks.py File 5.78 KB 0755
versionlock.py File 12.03 KB 0644