forked from siemens/kas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locking: generalize locking to all included files
Previously, kas only checked if a lockfile exists for the first file on the kas commandline. This is problematic when injecting mirror configurations by appending the site config as last file. In addition, it makes it hard for projects with multiple configs (kas-files) to use the locking support. This patch removes this limitation by checking for each file for a corresponding lock file. Hereby the same depths-first search logic is applied as with kas includes. Each lockfile is added as it would be the next include to process, i.e. after descending into the current hierarchie. This is applied recursively. Signed-off-by: Felix Moessbauer <[email protected]> Signed-off-by: Jan Kiszka <[email protected]>
- Loading branch information
1 parent
af82e38
commit ddb9217
Showing
2 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters