Skip to content

Commit

Permalink
Move to its own RP
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS committed Jan 27, 2025
1 parent 519309f commit a14bde9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
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:
if content_path == packages_folder or content == "version.txt":
continue
ConanOutput().debug(f"Removing {content_path}")
if os.path.isdir(content_path):
Expand Down
6 changes: 1 addition & 5 deletions test/integration/command/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,8 @@ def test_config_clean(storage_path):
assert "bar" not in tc.out
tc.run("config show core.upload:retry")
assert "7" not in tc.out
assert os.path.exists(os.path.join(tc.cache_folder, "extensions"))
assert not os.path.exists(os.path.join(tc.cache_folder, "extensions", "compatibility", "mycomp.py"))
assert not os.path.exists(os.path.join(tc.cache_folder, "extensions"))
assert os.path.exists(absolut_storage_path)
tc.run("create .", assert_error=True)
tc.run("profile detect")
tc.run("create .")


def test_config_reinit():
Expand Down

0 comments on commit a14bde9

Please sign in to comment.