Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
7ebabaf7
Commit
7ebabaf7
authored
Aug 03, 2017
by
syed-awais-ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
look for all file changes under docker/build directory
parent
bc8474a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util/parsefiles.py
+2
-2
No files found.
util/parsefiles.py
View file @
7ebabaf7
...
...
@@ -339,7 +339,7 @@ def _get_modified_dockerfiles(files, git_dir):
:return:
"""
items
=
set
()
candidate_files
=
{
f
for
f
in
DOCKER_PATH_ROOT
.
glob
(
"*/
Dockerfile
"
)}
candidate_files
=
{
f
for
f
in
DOCKER_PATH_ROOT
.
glob
(
"*/
*
"
)}
for
f
in
files
:
file_path
=
pathlib2
.
Path
(
git_dir
,
f
)
if
file_path
in
candidate_files
:
...
...
@@ -359,7 +359,7 @@ def _get_play_name_from_dockerfile(path):
# get individual parts of a file path
dirs
=
path
.
parts
# name of play is the preceeding part of the file path before "Dockerfile"
return
dirs
[
dirs
.
index
(
"Dockerfile"
)
-
1
]
return
dirs
[
-
2
]
def
arg_parse
():
...
...
Write
Preview
Markdown
is supported
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