diff options
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index b87e634f1b..e305e8b4ab 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -197,6 +197,16 @@ python write_specfile () { | |||
197 | if path.endswith("DEBIAN") or path.endswith("CONTROL"): | 197 | if path.endswith("DEBIAN") or path.endswith("CONTROL"): |
198 | continue | 198 | continue |
199 | 199 | ||
200 | # Treat all symlinks to directories as normal files. | ||
201 | # os.walk() lists them as directories. | ||
202 | def move_to_files(dir): | ||
203 | if os.path.islink(os.path.join(rootpath, dir)): | ||
204 | files.append(dir) | ||
205 | return True | ||
206 | else: | ||
207 | return False | ||
208 | dirs[:] = [dir for dir in dirs if not move_to_files(dir)] | ||
209 | |||
200 | # Directory handling can happen in two ways, either DIRFILES is not set at all | 210 | # Directory handling can happen in two ways, either DIRFILES is not set at all |
201 | # in which case we fall back to the older behaviour of packages owning all their | 211 | # in which case we fall back to the older behaviour of packages owning all their |
202 | # directories | 212 | # directories |