mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
fix some commands when used with / syntax between arguments
This commit is contained in:
parent
628f7e2cf5
commit
bfcfddb0da
@ -462,6 +462,7 @@ class Osc(cmdln.Cmdln):
|
||||
${cmd_option_list}
|
||||
"""
|
||||
|
||||
args = slash_split(args)
|
||||
apiurl = self.get_api_url()
|
||||
localdir = os.getcwd()
|
||||
project = package = None
|
||||
@ -469,7 +470,7 @@ class Osc(cmdln.Cmdln):
|
||||
if is_package_dir(localdir):
|
||||
project = store_read_project(localdir)
|
||||
package = store_read_package(localdir)
|
||||
else:
|
||||
elif len(args) == 2:
|
||||
project = args[0]
|
||||
package = args[1]
|
||||
|
||||
@ -502,6 +503,7 @@ class Osc(cmdln.Cmdln):
|
||||
${cmd_option_list}
|
||||
"""
|
||||
|
||||
args = slash_split(args)
|
||||
apiurl = self.get_api_url()
|
||||
localdir = os.getcwd()
|
||||
channel = None
|
||||
@ -544,6 +546,7 @@ class Osc(cmdln.Cmdln):
|
||||
${cmd_option_list}
|
||||
"""
|
||||
|
||||
args = slash_split(args)
|
||||
apiurl = self.get_api_url()
|
||||
localdir = os.getcwd()
|
||||
channel = None
|
||||
@ -588,6 +591,7 @@ class Osc(cmdln.Cmdln):
|
||||
${cmd_option_list}
|
||||
"""
|
||||
|
||||
args = slash_split(args)
|
||||
apiurl = self.get_api_url()
|
||||
project_dir = localdir = os.getcwd()
|
||||
patchinfo = 'patchinfo'
|
||||
|
Loading…
Reference in New Issue
Block a user