]> git.decadent.org.uk Git - dak.git/commitdiff
make p-u use the new utils.temp_dirname() method
authorMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 14:04:28 +0000 (10:04 -0400)
committerMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 14:04:28 +0000 (10:04 -0400)
Signed-off-by: Mike O'Connor <stew@vireo.org>
dak/process_unchecked.py

index dd97b6c7252d9c9eaf323fb336402a972e19941a..07e3c22abc0514f179d8c6cf854639fc4dadd85b 100755 (executable)
@@ -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()