Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osc-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpcdf
obs
osc-plugins
Commits
5724de66
Commit
5724de66
authored
4 years ago
by
Lorenz Hüdepohl
Browse files
Options
Downloads
Patches
Plain Diff
Do not duplicate attribute definitions, use from module
parent
d773a805
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpcdf_push.py
+1
-4
1 addition, 4 deletions
mpcdf_push.py
with
1 addition
and
4 deletions
mpcdf_push.py
+
1
−
4
View file @
5724de66
...
@@ -69,9 +69,6 @@ def do_mpcdf_push(self, subcmd, opts, *args):
...
@@ -69,9 +69,6 @@ def do_mpcdf_push(self, subcmd, opts, *args):
api_url
=
self
.
get_api_url
()
api_url
=
self
.
get_api_url
()
project_attributes
=
[
"
MPCDF:compiler_modules
"
,
"
MPCDF:cuda_modules
"
,
"
MPCDF:mpi_modules
"
]
package_attributes
=
[
"
MPCDF:enable_repositories
"
]
+
project_attributes
try
:
try
:
existing_maintainers
=
mpcdf_common
.
maintainers
(
api_url
,
to_project
,
package
)
existing_maintainers
=
mpcdf_common
.
maintainers
(
api_url
,
to_project
,
package
)
except
osc
.
core
.
HTTPError
as
e
:
except
osc
.
core
.
HTTPError
as
e
:
...
@@ -121,7 +118,7 @@ def do_mpcdf_push(self, subcmd, opts, *args):
...
@@ -121,7 +118,7 @@ def do_mpcdf_push(self, subcmd, opts, *args):
entries
=
ElementTree
.
fromstringlist
(
osc
.
core
.
streamfile
(
url
,
osc
.
core
.
http_GET
))
entries
=
ElementTree
.
fromstringlist
(
osc
.
core
.
streamfile
(
url
,
osc
.
core
.
http_GET
))
if
entries
.
find
(
'
./entry[@name=
"
{0}
"
]
'
.
format
(
package
))
is
not
None
:
if
entries
.
find
(
'
./entry[@name=
"
{0}
"
]
'
.
format
(
package
))
is
not
None
:
for
attribute
in
package
_attributes
:
for
attribute
in
mpcdf_common
.
package_attributes
+
mpcdf_common
.
config
_attributes
:
if
mpcdf_common
.
has_attribute
(
api_url
,
from_project
,
package
,
attribute
):
if
mpcdf_common
.
has_attribute
(
api_url
,
from_project
,
package
,
attribute
):
print
(
"
Setting attribute
"
,
attribute
)
print
(
"
Setting attribute
"
,
attribute
)
attr
=
mpcdf_common
.
get_attribute
(
api_url
,
from_project
,
package
,
attribute
)
attr
=
mpcdf_common
.
get_attribute
(
api_url
,
from_project
,
package
,
attribute
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment