mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
just make it more robust, use the same variable for local dir.
This commit is contained in:
parent
20f8234d8c
commit
65f540161f
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user