diff options
-rw-r--r-- | meta/classes/package_rpm.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 21ada348aa..5dafb3e7cb 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -113,6 +113,10 @@ python write_specfile () { | |||
113 | source_list = os.listdir(ar_outdir) | 113 | source_list = os.listdir(ar_outdir) |
114 | source_number = 0 | 114 | source_number = 0 |
115 | for source in source_list: | 115 | for source in source_list: |
116 | # do_deploy_archives may have already run (from sstate) meaning a .src.rpm may already | ||
117 | # exist in ARCHIVER_OUTDIR so skip if present. | ||
118 | if source.endswith(".src.rpm"): | ||
119 | continue | ||
116 | # The rpmbuild doesn't need the root permission, but it needs | 120 | # The rpmbuild doesn't need the root permission, but it needs |
117 | # to know the file's user and group name, the only user and | 121 | # to know the file's user and group name, the only user and |
118 | # group in fakeroot is "root" when working in fakeroot. | 122 | # group in fakeroot is "root" when working in fakeroot. |