public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] dbpg-raw: Only list top-level files in <pn>.install
@ 2019-09-21 11:09 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2019-09-21 11:09 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

From: Jan Kiszka <jan.kiszka@siemens.com>

The rest is included automatically. This also avoids that we stumble
over filenames with whitespaces, something dh_install does not seem to
support but also something that we generally do not need at the top
level of a rootfs.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/classes/dpkg-raw.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/dpkg-raw.bbclass b/meta/classes/dpkg-raw.bbclass
index f8dfb2d..3f19f8e 100644
--- a/meta/classes/dpkg-raw.bbclass
+++ b/meta/classes/dpkg-raw.bbclass
@@ -21,7 +21,8 @@ addtask install after do_unpack before do_prepare_build
 do_prepare_build[cleandirs] += "${D}/debian"
 do_prepare_build() {
 	cd ${D}
-	find . ! -type d | sed 's:^./::' > ${WORKDIR}/${PN}.install
+	find . -maxdepth 1 ! -name .. -and ! -name . -and ! -name debian | \
+		sed 's:^./::' > ${WORKDIR}/${PN}.install
 	mv ${WORKDIR}/${PN}.install ${D}/debian/
 
 	deb_debianize
-- 
2.16.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-21 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-21 11:09 [PATCH] dbpg-raw: Only list top-level files in <pn>.install Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox