Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
633d2e75
Commit
633d2e75
authored
Oct 15, 2019
by
Tiago de Freitas Pereira
Browse files
Added LICENSE.AGPL in the hack
parent
b39267eb
Pipeline
#34366
passed with stages
in 8 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/devtools/bootstrap.py
View file @
633d2e75
...
...
@@ -75,9 +75,14 @@ def do_hack(project_dir):
copying_file
=
os
.
path
.
join
(
project_dir
,
'COPYING'
)
if
(
os
.
path
.
exists
(
copying_file
)):
shutil
.
copyfile
(
copying_file
,
os
.
path
.
join
(
recipe_dir
,
"COPYING"
))
agpl_file
=
os
.
path
.
join
(
project_dir
,
'LICENSE.AGPL'
)
if
(
os
.
path
.
exists
(
agpl_file
)):
shutil
.
copyfile
(
agpl_file
,
os
.
path
.
join
(
recipe_dir
,
"LICENSE.AGPL"
))
meta_file
=
os
.
path
.
join
(
recipe_dir
,
"meta.yaml"
)
recipe
=
open
(
meta_file
).
readlines
()
recipe
=
[
l
.
replace
(
"../COPYING"
,
"COPYING"
).
replace
(
"../LICENSE"
,
"LICENSE"
)
for
l
in
recipe
]
recipe
=
[
l
.
replace
(
"../COPYING"
,
"COPYING"
).
replace
(
"../LICENSE"
,
"LICENSE"
)
.
replace
(
"../LICENSE.AGPL"
,
"LICENSE.AGPL"
)
for
l
in
recipe
]
open
(
meta_file
,
"wt"
).
write
(
''
.
join
(
recipe
))
#### END OF HACK
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment