mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rohieb@rohieb.name>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH 2/2] ptxdist: clean root should clean all image packages too
Date: Fri, 17 May 2019 12:12:34 +0200	[thread overview]
Message-ID: <20190517101234.10445-2-rohieb@rohieb.name> (raw)
In-Reply-To: <20190517101234.10445-1-rohieb@rohieb.name>

From: Roland Hieber <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>
---
 bin/ptxdist           | 2 ++
 doc/ref_parameter.inc | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/ptxdist b/bin/ptxdist
index a7be5cb3e..007e496da 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1041,6 +1041,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
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2019-05-17 10:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-17 10:12 [ptxdist] [PATCH 1/2] ptxdist: introduce the "clean target" subcommand Roland Hieber
2019-05-17 10:12 ` Roland Hieber [this message]
2019-05-17 14:47 ` Michael Olbrich

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=20190517101234.10445-2-rohieb@rohieb.name \
    --to=rohieb@rohieb.name \
    --cc=ptxdist@pengutronix.de \
    --cc=rhi@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