1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

just make it more robust, use the same variable for local dir.

This commit is contained in:
Adrian Schröter 2009-04-17 08:48:22 +00:00
parent 20f8234d8c
commit 65f540161f

View File

@ -1152,11 +1152,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
pass
if args and len(args) == 1:
if is_project_dir(os.getcwd()):
localdir = os.getcwd()
if is_project_dir(localdir):
project = Project(os.getcwd()).name
project_dir = "."
project_dir = localdir
package = args[0]
apiurl = Project(os.getcwd()).apiurl
apiurl = Project(localdir).apiurl
rev, dummy = parseRevisionOption(opts.revision)