From: Jan Kiszka <jan.kiszka@siemens.com>
To: Henning Schild <henning.schild@siemens.com>,
isar-users <isar-users@googlegroups.com>
Subject: [PATCH v2] dpkg-base: Do not fail clean if there are no packages
Date: Tue, 9 Jul 2019 14:04:53 +0200 [thread overview]
Message-ID: <cbab65a9-f370-5fe7-c579-8e2fa5aee2b3@siemens.com> (raw)
In-Reply-To: <20190708144047.37104f95@md1za8fc.ad001.siemens.net>
From: Jan Kiszka <jan.kiszka@siemens.com>
Use find instead of ls so that non-existing deb packages do not make
this fail, just leaving DEBS empty.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
Changes in v2:
- use find instead of ls || true
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 3e6ba8c..826b5d8 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -101,7 +101,7 @@ do_build() {
CLEANFUNCS += "repo_clean"
repo_clean() {
- DEBS=$( ls ${S}/../*.deb )
+ DEBS=$( find ${S}/.. -maxdepth 1 -name "*.deb" )
if [ -n "${DEBS}" ]; then
for d in ${DEBS}; do
p=$( dpkg-deb --show --showformat '${Package}' ${d} )
--
2.16.4
next prev parent reply other threads:[~2019-07-09 12:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-05 18:04 [PATCH] " Jan Kiszka
2019-07-08 12:40 ` Henning Schild
2019-07-09 12:04 ` Jan Kiszka [this message]
2019-07-23 8:45 ` [PATCH v2] " Baurzhan Ismagulov
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=cbab65a9-f370-5fe7-c579-8e2fa5aee2b3@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
/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