All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] package.bbclass: copy dotfiles in root D to PKGD
@ 2010-10-18 16:44 Michael Smith
  2010-10-18 17:33 ` Khem Raj
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Michael Smith @ 2010-10-18 16:44 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Enrico Scholz

The previous system("cp %s/* ...") missed dotfiles/dirs at the
top-level.

Signed-off-by: Michael Smith <msmith@cbnco.com>
Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Cc: Graham Gower <graham.gower@gmail.com>
Cc: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
---
 classes/package.bbclass |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/classes/package.bbclass b/classes/package.bbclass
index e2a61bf..2769595 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -356,15 +356,15 @@ python package_do_split_locales() {
 }
 
 python perform_packagecopy () {
-	dest = bb.data.getVar('D', d, True)
-	dvar = bb.data.getVar('PKGD', d, True)
+	installdest = bb.data.getVar('D', d, True)
+	pkgcopy = bb.data.getVar('PKGD', d, True)
 
-	bb.mkdirhier(dvar)
+	bb.mkdirhier(pkgcopy)
 
 	# Start by package population by taking a copy of the installed 
 	# files to operate on
-	os.system('rm -rf %s/*' % (dvar))
-	os.system('cp -pPR %s/* %s/' % (dest, dvar))
+	os.system('rm -rf %s/*' % (pkgcopy))
+	os.system('cp -pPR %s/. %s/' % (installdest, pkgcopy))
 }
 
 python populate_packages () {
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-10-19 17:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-18 16:44 [PATCH v3] package.bbclass: copy dotfiles in root D to PKGD Michael Smith
2010-10-18 17:33 ` Khem Raj
2010-10-18 18:00   ` Frans Meulenbroeks
2010-10-18 18:27 ` Khem Raj
     [not found] ` <AANLkTi=DtXf+VnB3LPzbzDD57LNSxgUaeeTM6=ohGstK@mail.gmail.com>
2010-10-18 20:43   ` Michael Smith
2010-10-19 13:16 ` Enrico Scholz
2010-10-19 13:25   ` Frans Meulenbroeks
2010-10-19 13:44     ` Henning Heinold
2010-10-19 17:07     ` Enrico Scholz
2010-10-19 17:24       ` Frans Meulenbroeks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.