summaryrefslogtreecommitdiff
path: root/meta/classes/archive-original-source.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/archive-original-source.bbclass')
-rw-r--r--meta/classes/archive-original-source.bbclass25
1 files changed, 9 insertions, 16 deletions
diff --git a/meta/classes/archive-original-source.bbclass b/meta/classes/archive-original-source.bbclass
index 1e138ce2fa..7258293c93 100644
--- a/meta/classes/archive-original-source.bbclass
+++ b/meta/classes/archive-original-source.bbclass
@@ -24,24 +24,17 @@ python () {
return
d.appendVarFlag('do_dumpdata_create_diff_gz', 'depends', ' %s:do_package_write_' %pn + packaging)
+ build_deps = ' %s:do_dumpdata_create_diff_gz' %pn
- if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) != 'srpm':
- """
- If package type is not 'srpm' then add tasks to move archive packages of
- original sources and scripts/logs in ${DEPLOY_DIR}/sources.
- """
+ if d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True) == 'logs_with_scripts':
+ d.appendVarFlag('do_archive_scripts_logs', 'depends', ' %s:do_package_write_' %pn + packaging)
+ build_deps += ' %s:do_archive_scripts_logs' %pn
+
+ if not not_tarball(d):
d.appendVarFlag('do_patch', 'depends', ' %s:do_archive_original_sources_patches' %pn)
- build_deps = ' %s:do_dumpdata_create_diff_gz' %pn
- if not not_tarball(d):
- build_deps += ' %s:do_archive_original_sources_patches' %pn
- if d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True) == 'logs_with_scripts':
- build_deps += ' %s:do_archive_scripts_logs' %pn
- d.appendVarFlag('do_archive_scripts_logs', 'depends', ' %s:do_package_write_' %pn + packaging)
- d.appendVarFlag('do_build', 'depends', build_deps)
-
- else:
- d.prependVarFlag('do_unpack', 'postfuncs', "do_archive_original_sources_patches")
- d.prependVarFlag('do_package_write_rpm', 'prefuncs', "do_archive_scripts_logs")
+ build_deps += ' %s:do_archive_original_sources_patches' %pn
+
+ d.appendVarFlag('do_build', 'depends', build_deps)
}
ARCHIVE_SSTATE_OUTDIR = "${DEPLOY_DIR}/sources/"