Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
# 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"})