From 415143d5482c0fd89211b3779c119c5e0061d3a0 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 23 Apr 2009 23:57:59 +0000 Subject: [PATCH] Restore osc co -c feature after commit r7103 Commit r7103 broke the osc co -c feature to checkout a package to the current directory. Restore it. --- osc/commandline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 29db2f65..cfbae2a8 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1192,6 +1192,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. get_source_file(apiurl, project, package, filename, revision=rev) elif package: + if opts.current_dir: project_dir = None + checkout_package(apiurl, project, package, rev, expand_link=expand_link, prj_dir=project_dir)