Skip to content

Commit

Permalink
Conan config clean is better if it regenerates default files
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS committed Jan 27, 2025
1 parent 1628939 commit cdd1e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conan/api/subapi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def clean(self):
packages_folder = self.global_conf.get("core.cache:storage_path") or os.path.join(self.home(), "p")
for content in contents:
content_path = os.path.join(self.home(), content)
if content_path == packages_folder or content == "version.txt":
if content_path == packages_folder:
continue
ConanOutput().debug(f"Removing {content_path}")
if os.path.isdir(content_path):
Expand Down

0 comments on commit cdd1e75

Please sign in to comment.