Fix behaviour with removed files

The build test was checking dependencies for deleted files as well
which let to errors. Ignore deleted files.

This fixes the --check-build from
http://logs.openstack.org/86/51386/7/check/gate-openstack-manuals-validate-build/48ad22c/console.html

Change-Id: Id8ee991829cd9f5adefe45a895671f83edb9b04e
This commit is contained in:
Andreas Jaeger 2013-10-12 17:15:53 +02:00
parent 3d60224bae
commit 20f0e165db

View File

@ -347,7 +347,7 @@ def validate_individual_files(rootdir, exceptions, verbose,
no_validated = 0
no_failed = 0
# Do not select delete files, just Added, Copied, Modified, Renamed,
# Do not select deleted files, just Added, Copied, Modified, Renamed,
# or Type changed
modified_files = get_modified_files(rootdir, "--diff-filter=ACMRT")
@ -583,7 +583,9 @@ def find_affected_books(rootdir, book_exceptions, verbose,
if not build_all_books:
# Generate list of modified_files
modified_files = get_modified_files(rootdir)
# Do not select deleted files, just Added, Copied, Modified, Renamed,
# or Type changed
modified_files = get_modified_files(rootdir, "--diff-filter=ACMRT")
modified_files = map(lambda x: os.path.abspath(x), modified_files)
# 2. Find all modified files and where they are included