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
956eb601
Commit
956eb601
authored
Jun 26, 2019
by
Lorenz Huedepohl
Browse files
Fixes for Python 2 compatibility
parent
d35b5b81
Pipeline
#67022
passed with stage
in 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mpcdf_common.py
View file @
956eb601
from
__future__
import
print_function
from
__future__
import
division
import
sys
import
osc
import
osc.conf
import
osc.core
import
osc.oscerr
from
osc.util.helper
import
decode_it
from
functools
import
partial
from
xml.etree
import
ElementTree
if
sys
.
version_info
[
0
]
<
3
:
def
decode_it
(
arg
):
return
arg
else
:
from
osc.util.helper
import
decode_it
known_microarchs
=
{
"sandybridge"
,
"haswell"
,
"skylake"
}
package_attributes
=
[
"MPCDF:enable_repositories"
]
...
...
mpcdf_refresh_aggregates.py
View file @
956eb601
...
...
@@ -9,7 +9,6 @@ import osc.cmdln
import
mpcdf_common
from
osc.util.helper
import
decode_it
from
xml.etree
import
ElementTree
...
...
@@ -100,7 +99,7 @@ def do_mpcdf_refresh_aggregates(self, subcmd, opts, *args):
aggregatename
=
"zz_aggregate_"
+
project
.
replace
(
":"
,
"-"
)
+
"_"
+
repo
refresh_aggregate
(
aggregatename
,
project
,
repo
,
target
)
prjconf
=
list
(
map
(
decode_it
,
osc
.
core
.
show_project_conf
(
apiurl
,
"software:dist"
)))
prjconf
=
list
(
map
(
mpcdf_common
.
decode_it
,
osc
.
core
.
show_project_conf
(
apiurl
,
"software:dist"
)))
start_marker
=
"# Autogenerated by osc mpcdf_refresh_aggregates, do not edit till end of section
\n
"
end_marker
=
"# End of autogenerated section
\n
"
...
...
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