| 1 |
possible dependencies: |
| 2 |
|
| 3 |
- unix pattern __foo/* |
| 4 |
- object: __foo//bar, __foo/bar |
| 5 |
- singleton with object_id: __foo/singleton |
| 6 |
- singleton without object_id: __foo/ |
| 7 |
|
| 8 |
solving dependencies: |
| 9 |
|
| 10 |
solve_dep(object, run_list): |
| 11 |
- list = [me] |
| 12 |
- if status == IN_DEPENDENCY: |
| 13 |
fail: circular dependency |
| 14 |
- status = IN_DEPENDENCY |
| 15 |
- create_list_of_deps(object) |
| 16 |
- try pattern expansion |
| 17 |
- for each dependency: |
| 18 |
if object does not exist: |
| 19 |
fail |
| 20 |
else: |
| 21 |
list.append(solve_dep(object, run_list)): |
| 22 |
- status == IN_LIST |
| 23 |
- return [me, dependencies [, dependencies of dependencies]] |