summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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