summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-08-07 14:34:33 +0000
committerRichard Purdie <richard@openedhand.com>2007-08-07 14:34:33 +0000
commit4ab9c749a05a501200755f63d7e153e6bfab9b51 (patch)
tree78b94ff5d3be3cd4ea202f4d0dd9db088df0894e /meta/classes
parent3378c5d56a445e57bc6f6c9da0930bd2c26c14f6 (diff)
downloadpoky-4ab9c749a05a501200755f63d7e153e6bfab9b51.tar.gz
package_deb/rootfs_deb.bbclass: Add fix from OE, add copyright notice
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2377 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_deb.bbclass5
-rw-r--r--meta/classes/rootfs_deb.bbclass3
2 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 655c700c3f..9a8db4f8f2 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -1,3 +1,7 @@
1#
2# Copyright 2006-2007 OpenedHand Ltd.
3#
4
1inherit package 5inherit package
2 6
3PACKAGE_EXTRA_DEPENDS += "dpkg-native fakeroot-native" 7PACKAGE_EXTRA_DEPENDS += "dpkg-native fakeroot-native"
@@ -212,6 +216,7 @@ python do_package_deb () {
212 scriptfile = file(os.path.join(controldir, script), 'w') 216 scriptfile = file(os.path.join(controldir, script), 'w')
213 except OSError: 217 except OSError:
214 raise bb.build.FuncFailed("unable to open %s script file for writing." % script) 218 raise bb.build.FuncFailed("unable to open %s script file for writing." % script)
219 scriptfile.write("#!/bin/sh\n")
215 scriptfile.write(scriptvar) 220 scriptfile.write(scriptvar)
216 scriptfile.close() 221 scriptfile.close()
217 os.chmod(os.path.join(controldir, script), 0755) 222 os.chmod(os.path.join(controldir, script), 0755)
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index b7a139c02b..67fa661308 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -1,3 +1,6 @@
1#
2# Copyright 2006-2007 Openedhand Ltd.
3#
1 4
2do_rootfs[depends] += "dpkg-native:do_populate_staging apt-native:do_populate_staging" 5do_rootfs[depends] += "dpkg-native:do_populate_staging apt-native:do_populate_staging"
3 6