On 2015-11-10 07:44:37 -0800, Egbert Eich wrote:
Branch: refs/heads/master Home: https://github.com/openSUSE/osc Commit: f17bef21e57152f15f843a23eb86ac501634c188 https://github.com/openSUSE/osc/commit/f17bef21e57152f15f843a23eb86ac501634c... Author: Egbert Eich
Date: 2015-11-10 (Tue, 10 Nov 2015) Changed paths: M osc/commandline.py
diff --git a/osc/commandline.py b/osc/commandline.py index 8509917..b8aa65a 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -4281,11 +4281,22 @@ Please submit there instead, or use --nodevelproject to force direct submission. # check if the project does exist (show_project_meta will throw an exception) show_project_meta(apiurl, project)
- Project.init_project(apiurl, prj_dir, project, conf.config['do_package_tracking']) + if opts.output_dir is not None: + init_dir=opts.output_dir + else: + init_dir=prj_dir + Project.init_project(apiurl, init_dir, project, conf.config['do_package_tracking'])
Hmm if the -o option is used, the checked out package is not managed by a project. So the question is, if we should initialize the project dir at all.
print(statfrmt('A', prj_dir))
# all packages for package in meta_get_packagelist(apiurl, project): + if opts.output_dir is not None: + outputdir = os.path.join(opts.output_dir, package) + if not os.path.exists(opts.output_dir): + os.mkdir(os.path.join(opts.output_dir)) + else: + outputdir=None +
Hmm why do you need this? opts.output_dir exists at this point (it is created by the Project.init_project call from above). Marcus