Keep list of patches unique before attempting a copy#4959
Keep list of patches unique before attempting a copy#4959ocaisa wants to merge 1 commit intoeasybuilders:developfrom
Conversation
| copy_file(patch['path'], target) | ||
| _log.debug("Copied patch %s to %s", patch['path'], target) | ||
|
|
||
| application_log = os.path.join(new_log_dir, log_fn) |
There was a problem hiding this comment.
log messages when trying to copy over files were disappearing into the abyss as the logs were already closed at this point. Moved the log copy to the last possible location
|
I debugged this a bit more, as I was curious why the patches showed up in that list twice. By adding some print statements throughout the code, I found that it's because of Instead of making sure that there are no duplicates, I think we should prevent that they show up in |
|
Prefer the approach in #4960 |
It was noted that for patches of extensions you can end up with multiple entries for a patch in the final list of patches. This change tries to make sure that each entry only appears once.
This actually can lead to a bug (observed when using
EESSI) as the copy will fail the second time around when the target file is not writable (it was read only on the initial copy) and came from a filesystem with extended attributes (like/cvmfs).