1
0
Fork 0

Add function "task_patches"

This commit is contained in:
Braiden Vasco 2017-07-02 18:53:17 +00:00
parent 684ebfaf9c
commit 61fa9c6505
1 changed files with 9 additions and 7 deletions

View File

@ -101,7 +101,16 @@ run_sub_stage() {
task_debconf "$SUB_STAGE_DIR/$i-debconf"
task_packages_nr "$SUB_STAGE_DIR/$i-packages-nr"
task_packages "$SUB_STAGE_DIR/$i-packages"
task_patches
task_run "$SUB_STAGE_DIR/$i-run.sh"
task_run_chroot "$SUB_STAGE_DIR/$i-run-chroot.sh"
done
popd > /dev/null
log_end "$SUB_STAGE_DIR"
}
task_patches() {
if [ -d ${i}-patches ]; then
log_begin "$SUB_STAGE_DIR/$i-patches"
pushd ${STAGE_WORK_DIR} > /dev/null
@ -137,13 +146,6 @@ run_sub_stage() {
popd > /dev/null
log_end "$SUB_STAGE_DIR/$i-patches"
fi
task_run "$SUB_STAGE_DIR/$i-run.sh"
task_run_chroot "$SUB_STAGE_DIR/$i-run-chroot.sh"
done
popd > /dev/null
log_end "$SUB_STAGE_DIR"
}
task_debconf() {