Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Julien Lopez
QueryR
Commits
8c55686d
Commit
8c55686d
authored
8 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
FASTR_RELEASE: fix copyright problems after distribution generation
parent
b7525f5b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mx.fastr/mx_fastr_dists.py
+9
-2
9 additions, 2 deletions
mx.fastr/mx_fastr_dists.py
with
9 additions
and
2 deletions
mx.fastr/mx_fastr_dists.py
+
9
−
2
View file @
8c55686d
...
...
@@ -271,9 +271,10 @@ class FastRArchiveParticipant:
# to ensure they are built first. Therefore, the JarDistribution code
# will include all their class files at the top-level of the jar by default.
# Since we have already encapsulated the class files in 'fastr_jars/fastr.jar' we
# suppress their inclusion here by resetting the deps fi
l
ed. A bit of a hack.
# suppress their inclusion here by resetting the deps fie
l
d. A bit of a hack.
if
self
.
dist
.
name
==
"
FASTR_RELEASE
"
:
assert
isinstance
(
self
.
dist
.
deps
[
0
],
FastRReleaseProject
)
self
.
release_project
=
self
.
dist
.
deps
[
0
]
self
.
dist
.
deps
[
0
].
deps
=
[]
def
__add__
(
self
,
arcname
,
contents
):
...
...
@@ -283,7 +284,13 @@ class FastRArchiveParticipant:
return
False
def
__closing__
(
self
):
pass
if
self
.
dist
.
name
==
"
FASTR_RELEASE
"
:
# the files copied in can be confused as source files by
# e.g., mx copyright, so delete them, specifically thne
# include dir
include_dir
=
join
(
self
.
release_project
.
dir
,
'
include
'
)
shutil
.
rmtree
(
include_dir
)
def
mx_post_parse_cmd_line
(
opts
):
for
dist
in
mx_fastr
.
_fastr_suite
.
dists
:
...
...
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