diff options
Diffstat (limited to 'meta/classes/archive-original-source.bbclass')
| -rw-r--r-- | meta/classes/archive-original-source.bbclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/archive-original-source.bbclass b/meta/classes/archive-original-source.bbclass index 2858d33876..1e138ce2fa 100644 --- a/meta/classes/archive-original-source.bbclass +++ b/meta/classes/archive-original-source.bbclass | |||
| @@ -14,11 +14,15 @@ addtask do_archive_original_sources_patches after do_unpack | |||
| 14 | addtask do_archive_scripts_logs | 14 | addtask do_archive_scripts_logs |
| 15 | 15 | ||
| 16 | # Get dump date and create diff file | 16 | # Get dump date and create diff file |
| 17 | addtask do_dumpdata_create_diff_gz before do_build | 17 | addtask do_dumpdata_create_diff_gz |
| 18 | 18 | ||
| 19 | python () { | 19 | python () { |
| 20 | pn = d.getVar('PN', True) | 20 | pn = d.getVar('PN', True) |
| 21 | packaging = d.getVar('IMAGE_PKGTYPE', True) | 21 | packaging = d.getVar('IMAGE_PKGTYPE', True) |
| 22 | |||
| 23 | if tar_filter(d): | ||
| 24 | return | ||
| 25 | |||
| 22 | d.appendVarFlag('do_dumpdata_create_diff_gz', 'depends', ' %s:do_package_write_' %pn + packaging) | 26 | d.appendVarFlag('do_dumpdata_create_diff_gz', 'depends', ' %s:do_package_write_' %pn + packaging) |
| 23 | 27 | ||
| 24 | if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) != 'srpm': | 28 | if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) != 'srpm': |
| @@ -27,7 +31,9 @@ python () { | |||
| 27 | original sources and scripts/logs in ${DEPLOY_DIR}/sources. | 31 | original sources and scripts/logs in ${DEPLOY_DIR}/sources. |
| 28 | """ | 32 | """ |
| 29 | d.appendVarFlag('do_patch', 'depends', ' %s:do_archive_original_sources_patches' %pn) | 33 | d.appendVarFlag('do_patch', 'depends', ' %s:do_archive_original_sources_patches' %pn) |
| 30 | build_deps = ' %s:do_archive_original_sources_patches' %pn | 34 | build_deps = ' %s:do_dumpdata_create_diff_gz' %pn |
| 35 | if not not_tarball(d): | ||
| 36 | build_deps += ' %s:do_archive_original_sources_patches' %pn | ||
| 31 | if d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True) == 'logs_with_scripts': | 37 | if d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True) == 'logs_with_scripts': |
| 32 | build_deps += ' %s:do_archive_scripts_logs' %pn | 38 | build_deps += ' %s:do_archive_scripts_logs' %pn |
| 33 | d.appendVarFlag('do_archive_scripts_logs', 'depends', ' %s:do_package_write_' %pn + packaging) | 39 | d.appendVarFlag('do_archive_scripts_logs', 'depends', ' %s:do_package_write_' %pn + packaging) |
