This commit updates code to handle the below things:
a. For these reused packages, updates the local debsentry cache
after successfully copying the reused debs from the shared
repository, this fixed the issue that the second project can not
get the subpackages from the shared debsentry of the first reused
project.
b. If the subpackages can't be got or failed to copy reused debs from
the shared repository, the reused packages will be reclaimed and
switch to the local build.
c. Opiton '--dl_reused' is provided to download these reused debs to
the package's local build directory if this is really needed
Test Plan:
1. Creates project A with reuse disabled and shared the build output
Creates project B with reuse enabled, the shared project is A
Creates project C with reuse enabled, the shared project is B
Project C built successfully
2. Create project D with reuse enabled and '--dl_reused' option:
$build-pkgs -a --parallel 10 --reuse --dl_reused
All the resued .deb will be downloaded to the local directory:
${MY_WORKSPACE}/reused_debs/downloads/binary
Closes-Bug: 1993224
Signed-off-by: Haiqing Bai <haiqing.bai@windriver.com>
Change-Id: I03267aab66f17afdb540f7d407bb4c9d97805886
47 KiB
Executable File
47 KiB
Executable File