This branch is derived from squashed-destine-1025,
The intention is to merge this into that branch and then cherry-pick the changes for 4.0,
The function has been split into multiple functions and added unit_tests to the test_wrapper.py, there were 0 unit tests for the build_packager, and the current wrapper tests are only testing the Vertical one.
These new tests test all the wrapper types, which is tedious to add, and there are still missing ones that I would like to add, but I'm afraid that it is very time-consuming, and I think that merge 4.1 has more priority right now over adding the rest of them.
Contains:
- Refactor job.packager.build_packages()
- #1224 (closed) fix
- Fix totaljobs for all jobs not only wrappers
- Added new unit tests for build_packages derived functions ( the reason for splitting into functions was to make this task easier )
- Future add the remaining unit tests