more fully honor topdir in kojid
This commit is contained in:
parent
de59def8e6
commit
f793d2f1b4
1 changed files with 5 additions and 0 deletions
|
|
@ -2960,6 +2960,11 @@ def get_options():
|
|||
if getattr(options, name, None) is None:
|
||||
setattr(options, name, value)
|
||||
|
||||
#honor topdir
|
||||
if options.topdir:
|
||||
koji.BASEDIR = options.topdir
|
||||
koji.pathinfo.topdir = options.topdir
|
||||
|
||||
#make sure workdir exists
|
||||
if not os.path.exists(options.workdir):
|
||||
koji.ensuredir(options.workdir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue