* [PATCH v2] dpkg-base: Permit multiple clean runs
@ 2019-09-17 9:50 Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2019-09-17 9:50 UTC (permalink / raw)
To: isar-users; +Cc: Henning Schild
From: Jan Kiszka <jan.kiszka@siemens.com>
"find ${S}/.." fails if the is no ${S} anymore.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
changes in v2:
- only suppress errors if ${S} does not exist
meta/classes/dpkg-base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index c86d0b3..fa904b8 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -102,7 +102,7 @@ addtask dpkg_build before do_build
CLEANFUNCS += "repo_clean"
repo_clean() {
- DEBS=$( find ${S}/.. -maxdepth 1 -name "*.deb" )
+ DEBS=$( find ${S}/.. -maxdepth 1 -name "*.deb" || [ ! -d ${S} ] )
if [ -n "${DEBS}" ]; then
for d in ${DEBS}; do
p=$( dpkg-deb --show --showformat '${Package}' ${d} )
--
2.16.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-09-17 9:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-17 9:50 [PATCH v2] dpkg-base: Permit multiple clean runs Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox