summaryrefslogtreecommitdiffstats
path: root/bin/ptxdist
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2019-05-20 11:26:05 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-05-24 11:03:04 +0200
commitd102720491267dd11d7c5983d33bc94c5a46c08b (patch)
treec928c748f6bb52e1956860f644644c3a5543d416 /bin/ptxdist
parente3b5d696ff6fb6741e168a43f549b268da0d19e7 (diff)
downloadptxdist-d102720491267dd11d7c5983d33bc94c5a46c08b.tar.gz
ptxdist-d102720491267dd11d7c5983d33bc94c5a46c08b.tar.xz
ptxdist: clean root should clean all image packages too
The images are already removed by 'clean root', so the image packages are built again anyways on the next build. Remove all left-over state for the image packages too, as those files are now useless. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-xbin/ptxdist2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 1a8e02192..eaecbb4d6 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1060,6 +1060,8 @@ clean() {
# we want to clean the root dir
if [ "${1}" = "root" ]; then
echo
+ echo "${PTXDIST_LOG_PROMPT}cleaning image packages..."
+ rm -fr -- "${STATEDIR}"/image-*
echo "${PTXDIST_LOG_PROMPT}cleaning image directory..."
rm -fr -- "${IMAGEDIR}"
echo "${PTXDIST_LOG_PROMPT}cleaning root directory..."