more fully honor topdir in kojid

This commit is contained in:
Mike McLean 2009-02-06 17:44:42 -05:00
parent de59def8e6
commit f793d2f1b4

View file

@ -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)