Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpcdf
obs
osc-plugins
Commits
e0618d8f
Commit
e0618d8f
authored
Jun 10, 2020
by
Lorenz Hüdepohl
Browse files
Support home: sub-projects for mpcdf_push
parent
9832a66b
Pipeline
#76362
passed with stage
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_branch.py
View file @
e0618d8f
...
...
@@ -16,19 +16,24 @@ def do_mpcdf_branch(self, subcmd, opts, *args):
all required meta-data for the enabled repositories.
Usage:
osc mpcdf_branch PACKAGE
osc mpcdf_branch PACKAGE
[home:$USER]
${cmd_option_list}
"""
apiurl
=
self
.
get_api_url
()
target_project
=
"home:"
+
osc
.
conf
.
get_apiurl_usr
(
apiurl
)
if
len
(
args
)
==
0
:
raise
osc
.
oscerr
.
WrongArgs
(
"Missing argument: PACKAGENAME"
)
if
len
(
args
)
>
1
:
elif
len
(
args
)
==
1
:
package
,
=
args
target_project
=
"home:"
+
osc
.
conf
.
get_apiurl_usr
(
apiurl
)
elif
len
(
args
)
==
2
:
package
,
target_project
=
args
if
not
target_project
.
startswith
(
"home:"
):
# + osc.conf.get_apiurl_usr(apiurl)):
raise
osc
.
oscerr
.
WrongArgs
(
"Target must be a home project"
)
if
len
(
args
)
>
2
:
raise
osc
.
oscerr
.
WrongArgs
(
"Too many arguments"
)
package
,
=
args
mpcdf_common
.
sync_projects
(
apiurl
,
package
=
package
,
from_project
=
"software"
,
to_projects
=
(
target_project
,),
add_to_maintainers
=
False
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment