Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Javier Cervantes Villanueva
lcgcmake
Commits
90caf860
Commit
90caf860
authored
Sep 21, 2015
by
Ivan Razumov
Browse files
Derp
parent
95a39ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
cdash/copyRPMS.py
View file @
90caf860
...
...
@@ -32,7 +32,7 @@ def copyRPMS(localarea, remotearea, target="all", policy="Release"):
print
"Copied %s to %s"
%
(
item
,
remotearea
)
elif
policy
==
"Rebuild"
:
# force overwriting a single package
targetname
=
'_'
+
target
.
split
(
"-"
)[
0
].
lower
()
+
'_'
# remove version from <package>-<version> cases like rivet-2.3.0
targetname
=
target
.
split
(
"-"
)[
0
].
lower
()
# remove version from <package>-<version> cases like rivet-2.3.0
rpms_to_copy
=
[
f
for
f
in
newrpms
if
(
targetname
in
f
.
lower
().
split
(
"-"
)[
0
]
)
]
if
len
(
rpms_to_copy
)
<
1
:
print
"ERROR: no RPM for package %s found"
%
target
...
...
Write
Preview
Supports
Markdown
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