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