[Copy Files][Fixed] Problems when using with `compress`

- Wrong targets and dependencies.
This commit is contained in:
Salvador E. Tropea 2023-01-18 15:03:10 -03:00
parent fbcbf90504
commit b6240d5fea
2 changed files with 4 additions and 2 deletions

View File

@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Now all 2D variant stuff is applied before calling iBoM (#350)
- Copy_Files:
- Problems on KiCad 5 (no 3rd party dir) (#357)
- Problems with compress output (also Makefile) (#372)
- BoM:
- pre_transform filers can't be logic filters
- DOCs

View File

@ -206,12 +206,13 @@ class Copy_FilesOptions(Base3DOptions):
return files
def get_targets(self, out_dir):
self.output_dir = out_dir
files = self.get_files(no_out_run=True)
return sorted([os.path.join(out_dir, v) for v in files.values()])
return sorted([os.path.join(out_dir, v) for _, v in files])
def get_dependencies(self):
files = self.get_files(no_out_run=True)
return files.keys()
return sorted([v for v, _ in files])
def run(self, output):
super().run(output)