add trailing newlines to postinst and postrm in split packages
authorPhil Blundell <philb@gnu.org>
Tue, 19 Apr 2005 01:35:12 +0000 (01:35 +0000)
committerPhil Blundell <philb@gnu.org>
Tue, 19 Apr 2005 01:35:12 +0000 (01:35 +0000)
BKrev: 42646050b9wZ5BDXf6zj1pOZottT1g

classes/package.bbclass

index 774bd79..9abecd5 100644 (file)
@@ -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: