From: Mike O'Connor Date: Fri, 13 Mar 2009 14:04:28 +0000 (-0400) Subject: make p-u use the new utils.temp_dirname() method X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d44faefd78782178bddbaf494c0aa453114f460a;p=dak make p-u use the new utils.temp_dirname() method Signed-off-by: Mike O'Connor --- diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index dd97b6c7..07e3c22a 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 @@ -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()