diff options
author | Rodrigo Vivi <rodrigo.vivi@gmail.com> | 2007-04-12 14:10:48 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-04-12 14:10:48 +0000 |
commit | 2893993b5767a8d3980f16b7e4b5bf596eb977a8 (patch) | |
tree | ca1c854d35a4fb019832f5c662239d8b3b0cbe40 /classes | |
parent | 3524b34212fdab21c6882324b85efcc65dd6238c (diff) |
package_deb.bbclass: add shebang, closes #2086
Diffstat (limited to 'classes')
-rw-r--r-- | classes/package_deb.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass index 388f9819bd..0c83e58a37 100644 --- a/classes/package_deb.bbclass +++ b/classes/package_deb.bbclass @@ -209,6 +209,7 @@ python do_package_deb () { scriptfile = file(os.path.join(controldir, script), 'w') except OSError: raise bb.build.FuncFailed("unable to open %s script file for writing." % script) + scriptfile.write("#!/bin/sh\n") scriptfile.write(scriptvar) scriptfile.close() os.chmod(os.path.join(controldir, script), 0755) |