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
2a710d20
Commit
2a710d20
authored
5 years ago
by
Lorenz Huedepohl
Browse files
Options
Downloads
Patches
Plain Diff
Add aggregates for all repos, not just active ones
parent
1a662193
No related branches found
No related tags found
No related merge requests found
Pipeline
#67012
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpcdf_refresh_aggregates.py
+1
-12
1 addition, 12 deletions
mpcdf_refresh_aggregates.py
with
1 addition
and
12 deletions
mpcdf_refresh_aggregates.py
+
1
−
12
View file @
2a710d20
...
...
@@ -80,17 +80,6 @@ def do_mpcdf_refresh_aggregates(self, subcmd, opts, *args):
projects
=
[
p
for
p
in
osc
.
core
.
meta_get_project_list
(
apiurl
)
if
p
.
startswith
(
"
software
"
)
and
not
(
p
==
"
software:dist
"
or
p
==
"
software:images
"
)]
def
active_repos
(
project
):
lines
=
map
(
mpcdf_common
.
decode_it
,
osc
.
core
.
show_project_conf
(
apiurl
,
project
))
for
line
in
lines
:
if
line
==
mpcdf_common
.
prjconf_start_marker
:
break
for
line
in
lines
:
if
line
==
mpcdf_common
.
prjconf_end_marker
:
break
if
line
.
startswith
(
"
%if %_repository ==
"
):
yield
line
.
split
(
"
==
"
)[
1
].
rstrip
()
macros
=
{}
for
project
in
projects
:
if
project
==
"
software
"
:
...
...
@@ -105,7 +94,7 @@ def do_mpcdf_refresh_aggregates(self, subcmd, opts, *args):
values
=
mpcdf_common
.
get_attribute_values
(
apiurl
,
project
,
None
,
attribute
)
macros
[
target
].
append
(
"
%available_{0} {1}
"
.
format
(
name
,
"
,
"
.
join
(
sorted
(
values
))))
for
repo
in
active_repos
(
project
):
for
repo
in
osc
.
core
.
get_repositories_of_project
(
apiurl
,
project
):
aggregatename
=
"
zz_aggregate_
"
+
project
.
replace
(
"
:
"
,
"
-
"
)
+
"
_
"
+
repo
refresh_aggregate
(
aggregatename
,
project
,
repo
,
target
)
...
...
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