build-tools: fix invalid apt cache removal

Fix Debian base image docker file attempting to remove a non-existent
directory when cleaning apt cache.

TESTS
===================================
Build the base image

Closes-Bug: 1982767
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: Ibb786be00570b72dcbe52fd920cbec2e10661969
This commit is contained in:
Davlet Panech 2022-07-25 12:34:02 -04:00
parent 34a7d7281b
commit b4537736b2

View File

@ -72,7 +72,7 @@ RUN cp -f /etc/apt/sources.list.d/debian.list.disabled /etc/apt/sources.list.d/d
rm -f /etc/apt/sources.list.d/debian.list && \
rm -f /etc/apt/sources.list.d/stx.list && \
apt-get clean && \
rm -rf /var/lib/apt/files/*
rm -rf /var/lib/apt/lists/*
#
# Enable stx repo only. Packages installs below this point will use
@ -94,7 +94,7 @@ RUN apt-get update -y && \
# qemu-utils \
&& \
apt-get clean && \
rm -rf /var/lib/apt/files/*
rm -rf /var/lib/apt/lists/*
# FIXME: these packages are not required by most docker images inheriting
# from this image. However these Python modules are not buildable from
@ -112,4 +112,4 @@ RUN apt-get update -y && \
python-nss \
&& \
apt-get clean && \
rm -rf /var/lib/apt/files/*
rm -rf /var/lib/apt/lists/*