Only consider directories which do have .deps files other than ancestor.deps. (#74987)
This commit is contained in:
parent
7f6edd78f9
commit
e6a7bc854c
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ def find_latest_ansible_dir(build_data_working):
|
||||||
except InvalidVersion:
|
except InvalidVersion:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Check if it contains any other .deps files than ancestor.deps
|
||||||
|
deps_files = [
|
||||||
|
df for df in glob.glob(os.path.join(directory_name, '*.deps'))
|
||||||
|
if os.path.basename(df) != 'ancestor.deps']
|
||||||
|
if not deps_files:
|
||||||
|
continue
|
||||||
|
|
||||||
if new_version > latest_ver:
|
if new_version > latest_ver:
|
||||||
latest_ver = new_version
|
latest_ver = new_version
|
||||||
latest = directory_name
|
latest = directory_name
|
||||||
|
|
Loading…
Reference in a new issue