summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/package.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 774bd794af..9abecd5550 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -15,9 +15,9 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
return
if postinst:
- postinst = '#!/bin/sh\n' + postinst
+ postinst = '#!/bin/sh\n' + postinst + '\n'
if postrm:
- postrm = '#!/bin/sh\n' + postrm
+ postrm = '#!/bin/sh\n' + postrm + '\n'
if not recursive:
objs = os.listdir(dvar + root)
else: