diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-10-29 14:03:50 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-10-30 08:28:00 +0000 |
commit | 524ed121cb91ae0d1cdfe3282609c9bf1588cda7 (patch) | |
tree | f9fe602c34bb99481c591eeaf63074c7794b4b33 | |
parent | 32f35f98c63e74bd975ee5099196aab8f6f9572c (diff) |
Clean target repository dir prior to downloading packages
This increases idempotency and allows avoiding side effects
in cases where repo dir already contains images that are not
on the list of required packages.
Change-Id: Ieaa4e407ae7aacdc8d25440d90860cb880df09e2
Issue-ID: OOM-2615
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rwxr-xr-x | build/docker-entrypoint.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/docker-entrypoint.sh b/build/docker-entrypoint.sh index 965037e0..b597dab4 100755 --- a/build/docker-entrypoint.sh +++ b/build/docker-entrypoint.sh @@ -107,6 +107,9 @@ then PCKG_LIST_DIR="/tmp/additional-lists/" fi +# Clean target repo dir for idempotency +rm -rf ${OFFLINE_REPO_DIR}/* + case "$distro_type" in ubuntu) # Change current working dir |