summaryrefslogtreecommitdiffstats
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
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>
-rwxr-xr-xbin/ptxdist2
-rw-r--r--doc/ref_parameter.inc2
2 files changed, 3 insertions, 1 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..."
diff --git a/doc/ref_parameter.inc b/doc/ref_parameter.inc
index 4aecb0471..35e689722 100644
--- a/doc/ref_parameter.inc
+++ b/doc/ref_parameter.inc
@@ -154,7 +154,7 @@ Clean Actions
This is a way to start a fresh build cycle.
``clean root``
- this action will only clean the root filesystem
+ this action will only clean the image packages and the root filesystem
directories. All the build directories are left untouched.
After using this action, the next ``go`` action will regenerate all opkg
archives from the already built packages as well as the root filesystem