if not distconf.endswith('.conf') or '-' in os.path.basename(distconf):
raise GbsError("build config file must end with .conf, and can't "
"contain '-'")
- dist = os.path.basename(distconf)[:-len('.conf')]
+ dist = "'"+os.path.basename(distconf)[:-len('.conf')]+"'"
cmd_opts += ['--dist=%s' % dist]
- cmd_opts += ['--configdir=%s' % os.path.dirname(distconf)]
+ path = "'"+os.path.dirname(distconf)+"'"
+ cmd_opts += ['--configdir=%s' % path]
return cmd_opts
else:
cmd += ['--noinit']
- cmd += ['--path=%s' % workdir]
+ cmd += ['--path=%s' % "'"+str(workdir)+"'"]
if args.ccache:
cmd += ['--ccache']
if args.commit and args.include_all:
raise Usage("--commit can't be specified together with --include-all")
-
+ log.debug("export begin")
workdir = args.gitdir
try:
repo = RpmGitRepository(workdir)
except GitRepositoryError, err:
raise GbsError(str(err))
-
+ log.debug("read repo path")
utils.read_localconf(repo.path)
utils.git_status_checker(repo, args)
workdir = repo.path
commit = 'HEAD'
orphan_packaging = configmgr.get('packaging_branch', 'orphan-devel')
spec_commit_id = orphan_packaging if orphan_packaging else commit
+ log.debug("check packaging_dir")
packaging_dir = get_packaging_dir(args)
main_spec, rest_specs = utils.guess_spec(workdir, packaging_dir,
args.spec, spec_commit_id)
-
+ log.debug("check outdir")
if args.outdir:
outdir = args.outdir
else:
raise GbsError('no write permission to outdir: %s' % outdir)
else:
mkdir_p(outdir)
-
+ log.debug("check tmpdir")
tmpdir = configmgr.get('tmpdir', 'general')
tempd = utils.Temp(prefix=os.path.join(tmpdir, '.gbs_export_'),
directory=True)
else:
outdir = "%s/%s-%s-%s" % (outdir, spec.name, spec.upstreamversion,
spec.release)
-
+ log.debug("check outdir")
if os.path.exists(outdir):
if not os.access(outdir, os.W_OK|os.X_OK):
raise GbsError('no permission to update outdir: %s' % outdir)