aboutsummaryrefslogtreecommitdiffstats
path: root/mini-dinstall
diff options
context:
space:
mode:
Diffstat (limited to 'mini-dinstall')
-rwxr-xr-xmini-dinstall33
1 files changed, 0 insertions, 33 deletions
diff --git a/mini-dinstall b/mini-dinstall
index 92db848..8d53edc 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -23,7 +23,6 @@
import os, sys, re, glob, getopt, time, traceback, lzma, getpass, socket
import shutil, threading, select, queue, socketserver, datetime
import logging, logging.handlers
-#logging.basicConfig()
import apt_pkg
apt_pkg.init()
from configparser import *
@@ -435,34 +434,6 @@ for dist in list(distributions.keys()):
logger.debug("Distributions: %s" % distributions)
-# class DinstallTransaction:
-# def __init__(self, dir):
-# self._dir = dir
-
-# def start(self, pkgname):
-# self._pkgname = pkgname
-# self._transfilename = os.path.join(dir, pkgname + ".transaction")
-
-# def _log_op(self, type, state, str):
-# tmpfile = self._transfilename + ".tmp"
-# if (os.access(self._transfilename), os.R_OK):
-# shutil.copyFile(self._transfilename, tmpfile)
-# f = open(tmpfile, 'w')
-# f.write('%s %s' % (type, str) )
-# f.close()
-
-# def _start_op(self, type, str):
-# self._log_op(type, 'start', str)
-
-# def _stop_op(self, type, str):
-# self._log_op(type, 'stop', str)
-
-# def renameFile(self, source, dst):
-# self._start_op('rename',
-
-# def _sync():
-# os.system("sync")
-
os.chdir(toplevel_directory)
do_mkdir(dinstall_subdir)
rejectdir = os.path.join(dinstall_subdir, 'REJECT')
@@ -774,9 +745,6 @@ class ArchiveDir:
self._success_logger.addHandler(self.mailHandler)
self._clean_targets = []
-# self._filerefmap = {}
-# self._changefiles = []
-
def _abspath(self, *args):
return os.path.abspath(os.path.join(*[self._dir] + list(args)))
@@ -1659,7 +1627,6 @@ else:
logger.info('Die event caught; waiting for archive %s to finish' % archive.getName())
archive.wait()
-#logging.shutdown()
logger.debug('Removing lock file: %s' % lockfilename)
os.unlink(lockfilename)
logger.info("main thread exiting...")