package_rpm.bbclass: files needs to start from /
authorMarcin Juszkiewicz <hrw@openedhand.com>
Thu, 28 Aug 2008 07:35:31 +0000 (07:35 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Fri, 20 Mar 2009 18:39:53 +0000 (19:39 +0100)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5116 311d38ba-8fff-0310-9ca6-ca027cbcb966

classes/package_rpm.bbclass

index 7f55e38..71fa760 100644 (file)
@@ -121,6 +121,8 @@ python write_specfile() {
 
        fd.write("%files\n")
        for file in files:
+               if file[0] != '/':
+                       fd.write('/')
                fd.write("%s\n" % file)
 
        fd.close()