Skip to content

Commit

Permalink
Merge branch 'develop2' into frm/win_gh_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido authored Nov 8, 2024
2 parents b4f9619 + c74f05f commit ae02449
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conan/tools/files/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,7 @@ def export_conandata_patches(conanfile):
if patch_file:
src = os.path.join(conanfile.recipe_folder, patch_file)
dst = os.path.join(conanfile.export_sources_folder, patch_file)
if not os.path.exists(src):
raise ConanException(f"Patch file does not exist: '{src}'")
mkdir(os.path.dirname(dst))
shutil.copy2(src, dst)
2 changes: 1 addition & 1 deletion test/functional/tools/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def source(self):
# No patch found
client.save({"conandata.yml": conandata_yml})
client.run("create .", assert_error=True)
assert "No such file or directory" in client.out
assert "Patch file does not exist: '" in client.out

client.save({"patches/mypatch.patch": "mypatch!!!"})
client.run("create .")
Expand Down

0 comments on commit ae02449

Please sign in to comment.