Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lcgcmake
Manage
Activity
Members
Labels
Plan
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
sft
lcgcmake
Commits
7f15d492
Commit
7f15d492
authored
9 years ago
by
Ivan Razumov
Browse files
Options
Downloads
Patches
Plain Diff
Change the way script decides which rpm to copy (in 'reinstall' mode)
parent
90caf860
No related branches found
No related tags found
1 merge request
!11
[WIP] Fix Reinstall mode of lcg_generators_dbg job
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cdash/copyRPMS.py
+1
-1
1 addition, 1 deletion
cdash/copyRPMS.py
with
1 addition
and
1 deletion
cdash/copyRPMS.py
+
1
−
1
View file @
7f15d492
...
@@ -33,7 +33,7 @@ def copyRPMS(localarea, remotearea, target="all", policy="Release"):
...
@@ -33,7 +33,7 @@ def copyRPMS(localarea, remotearea, target="all", policy="Release"):
elif
policy
==
"
Rebuild
"
:
elif
policy
==
"
Rebuild
"
:
# force overwriting a single package
# 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
]
)
]
rpms_to_copy
=
[
f
for
f
in
newrpms
if
(
f
.
lower
().
startswith
(
targetname
)
)
]
if
len
(
rpms_to_copy
)
<
1
:
if
len
(
rpms_to_copy
)
<
1
:
print
"
ERROR: no RPM for package %s found
"
%
target
print
"
ERROR: no RPM for package %s found
"
%
target
sys
.
exit
(
errno
.
EINVAL
)
sys
.
exit
(
errno
.
EINVAL
)
...
...
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