From 39c140db8f8b040fc25e118ee17b4aee2217643a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 2 Sep 2013 18:03:20 +0200 Subject: [PATCH] make using /tmp for the debian folder configurable (but it remains the default) --- auto_debuild.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/auto_debuild.py b/auto_debuild.py index 94c7c14..24720b9 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -229,11 +229,14 @@ def createDebianFiles(config): files = [] # create folders if os.path.exists('debian') or os.path.islink('debian'): raise Exception('debian folder already exists?') - tempdir = tempfile.mkdtemp(prefix='auto-debuild-') - os.mkdir(tempdir+'/source') - os.symlink(tempdir, 'debian') + if config.getbool('useTmp', True): + tempdir = tempfile.mkdtemp(prefix='auto-debuild-') + os.symlink(tempdir, 'debian') + else: + os.mkdir('debian') if not os.path.exists(debDir): os.makedirs(debDir) # source format file + os.mkdir('debian/source') with open('debian/source/format', 'w') as f: print >>f, "3.0 (native)" # compat file -- 2.30.2