From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v2 2/2] ptxdist: clean root should clean all image packages too
Date: Mon, 20 May 2019 11:26:05 +0200 [thread overview]
Message-ID: <20190520092605.19300-2-rhi@pengutronix.de> (raw)
In-Reply-To: <20190520092605.19300-1-rhi@pengutronix.de>
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>
---
v1 -> v2: no changes in this patch.
bin/ptxdist | 2 ++
doc/ref_parameter.inc | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/ptxdist b/bin/ptxdist
index 57c094b33cd8..f1978418fae9 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1060,6 +1060,8 @@ clean() {
# we want to clean the root dir
if [ "${1}" = "root" -o -n "$cleanroot" ]; 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 4aecb04713d7..35e68972203d 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
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2019-05-20 9:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-20 9:26 [ptxdist] [PATCH v2 1/2] ptxdist: introduce the "clean target" subcommand Roland Hieber
2019-05-20 9:26 ` Roland Hieber [this message]
2019-05-22 10:18 ` [ptxdist] [PATCH v3 " Roland Hieber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190520092605.19300-2-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox