summaryrefslogtreecommitdiff
path: root/classes/package_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/package_rpm.bbclass')
-rw-r--r--classes/package_rpm.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/package_rpm.bbclass b/classes/package_rpm.bbclass
index 7f55e384fe..71fa76010f 100644
--- a/classes/package_rpm.bbclass
+++ b/classes/package_rpm.bbclass
@@ -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()