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
Merge requests
!11
[WIP] Fix Reinstall mode of lcg_generators_dbg job
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
[WIP] Fix Reinstall mode of lcg_generators_dbg job
LCG_79_ex_ex
into
LCG_79
Overview
0
Commits
3
Pipelines
0
Changes
Closed
Ivan Razumov
requested to merge
LCG_79_ex_ex
into
LCG_79
9 years ago
Overview
0
Commits
3
Pipelines
0
Changes
-
Expand
0
0
Merge request reports
Compare
LCG_79
LCG_79 (base)
and
latest version
latest version
7f15d492
3 commits,
9 years ago
+
10
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
cdash/copyRPMS.py
+
10
−
6
Options
@@ -32,15 +32,19 @@ 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] # remove version from <package>-<version> cases like rivet-2.3.0
rpms_to_copy = [f for f in newrpms if (f.lower().s
plit("-")[0] ==
targetname
.lower(
) ) ]
if len(rpms_to_copy)
!=
1:
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 (
f.lower().s
tartswith(
targetname) ) ]
if len(rpms_to_copy)
<
1:
print "ERROR: no RPM for package %s found" %target
sys.exit(errno.EINVAL)
else:
item = rpms_to_copy[0]
shutil.copy2(join(buildarea,item), remotearea)
print "Copied %s to %s" %(item, remotearea)
if len(rpms_to_copy) > 1:
print "ERROR: too many RPMs for package %s found" %target
sys.exit(errno.EINVAL)
else:
item = rpms_to_copy[0]
shutil.copy2(join(buildarea,item), remotearea)
print "Copied %s to %s" %(item, remotearea)
else:
print "ERROR: policy %s and target %s invalid!" %(policy, target)
sys.exit(errno.EINVAL)
Loading