mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:38:58 +08:00
Moved handling of the sources to the generate function
When running `conan source .` on ubuntu the `.git` folder was removed, happens with cona 1.47 ... 1.49 This seems to be a bug in Conan, I will try to reproduce it and create an issue in their repo. Contributes to CURA-9365
This commit is contained in:
parent
3a8a04669b
commit
9ec39a9c7e
@ -100,7 +100,7 @@ class CuraConan(ConanFile):
|
||||
for req in self.conan_data[self.version]["conan"].values():
|
||||
self.requires(req)
|
||||
|
||||
def source(self):
|
||||
def generate(self):
|
||||
for source in self.conan_data[self.version]["sources"].values():
|
||||
src_path = Path(self.source_folder, source["root"], source["src"])
|
||||
if not src_path.exists():
|
||||
@ -120,7 +120,6 @@ class CuraConan(ConanFile):
|
||||
else:
|
||||
shutil.copytree(src_path, dst_root_path)
|
||||
|
||||
def generate(self):
|
||||
with open(Path(self.source_folder, "cura", "CuraVersion.py.jinja"), "r") as f:
|
||||
cura_version_py = Template(f.read())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user