X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=8a49f009e5ffdff7931442c28e0182e31eb8db12;hb=04dc27ae10c3dc9bb001544c297ae089256c3ef1;hp=4b731a1784292e9e9519720a60015115870eed5d;hpb=1fc2bf300a251648e71f85979e20f3d649c3caad;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 4b731a17..8a49f009 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -37,7 +37,6 @@ import shutil import stat import sys import time -import tempfile import traceback import tarfile import apt_inst @@ -145,16 +144,6 @@ def reject (str, prefix="Rejected: "): ################################################################################ -def create_tmpdir(): - """ - Create a temporary directory that can be used for unpacking files into for - checking - """ - tmpdir = tempfile.mkdtemp() - return tmpdir - -################################################################################ - def copy_to_holding(filename): global in_holding @@ -572,7 +561,7 @@ def check_files(): # Check the version and for file overwrites reject(Upload.check_binary_against_db(f),"") - Binary(f).scan_package() + Binary(f, reject).scan_package( ) # Checks for a source package... else: @@ -889,7 +878,7 @@ def check_source(): or pkg.orig_tar_gz == -1: return - tmpdir = create_tmpdir() + tmpdir = utils.temp_dirname() # Move into the temporary directory cwd = os.getcwd() @@ -1334,7 +1323,7 @@ def is_stableupdate (): AND sa.suite = %(suite)d""", {'source' : changes['source'], 'version' : changes['version'], - 'suite' : pasuite}) + 'suite' : pusuite}) if cursor.fetchone(): # source is already in proposed-updates so no need to hold @@ -1369,7 +1358,7 @@ def is_oldstableupdate (): AND sa.suite = %d""", {'source' : changes['source'], 'version' : changes['version'], - 'suite' : pasuite}) + 'suite' : pusuite}) if cursor.fetchone(): return 0