Skip to content

Commit

Permalink
No longer store . in map
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcspadden committed Sep 21, 2023
1 parent bd8ef7b commit d3c18d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Code/autopkg
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def locate_recipe(
recipe_file = find_recipe(name, skip_overrides)
if not recipe_file:
# If we still didn't find it in the map, try rebuilding the map with current dirs
log("Rebuilding recipe map with cur dirs")
log("Rebuilding recipe map with current working directories...")
calculate_recipe_map(skip_cwd=False)
recipe_file = find_recipe(name, skip_overrides)

Expand Down
3 changes: 1 addition & 2 deletions Code/autopkglib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ def calculate_recipe_map(
elif search_dir == ".":
# if we're not skipping cwd, we want to add it to the map
search_dir = os.path.abspath(".")
log("Using . in the map temporarily")
globalRecipeMap["identifiers"].update(
map_key_to_paths("identifiers", search_dir)
)
Expand All @@ -340,7 +339,7 @@ def calculate_recipe_map(
globalRecipeMap["overrides-identifiers"].update(
map_key_to_paths("overrides-identifiers", override)
)
if not extra_search_dirs or not extra_override_dirs or not skip_cwd:
if skip_cwd and (not extra_search_dirs or not extra_override_dirs):
# Don't store the extra stuff in the cache; they're intended to be temporary
write_recipe_map_to_disk()

Expand Down

0 comments on commit d3c18d4

Please sign in to comment.