Change-Id: Iacc7b1b760011f2197f5a7c7dbf9572dffa305c5
import os
import shutil
import errno
-import tempfile
import msger
import utils
# Only guess spec filename here, parse later when we have the correct
# spec file at hand
specfile = utils.guess_spec(workdir, opts.spec)
- tempd = Temp(prefix='gbs_export_', dirn=outdir, directory=True)
+ tempd = utils.Temp(prefix='gbs_export_', dirn=outdir, directory=True)
export_dir = tempd.path
with utils.Workdir(workdir):
if opts.commit:
"passwdx": PASSWDX,
}
- tmpf = Temp(dirn=tmpdir, prefix='.oscrc', content=oscrc)
+ tmpf = utils.Temp(dirn=tmpdir, prefix='.oscrc', content=oscrc)
oscrcpath = tmpf.path
if opts.buildlog: