fix instances of bad stagefile creation circumstances
theres no point in creation of stagefiles being kept within a conditional block of work. if the script completes with success then it should create its stagefile to thus avoid repeating any work that it might have done should it get re-run without being forced. Gbp-Dch: Short
This commit is contained in:
parent
3e3e8c2c64
commit
5e423d0851
|
@ -48,7 +48,7 @@ then
|
|||
find binary -type l | xargs rm -f
|
||||
;;
|
||||
esac
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/binary_includes
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/binary_includes
|
||||
|
|
|
@ -85,12 +85,11 @@ cat > binary/install/gtk/install.bat << EOF
|
|||
EOF
|
||||
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/binary_loadlin
|
||||
;;
|
||||
|
||||
*)
|
||||
Echo_warning "loadlin inclusion is set to true but not compatible with your architecture, ignoring."
|
||||
;;
|
||||
esac
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/binary_loadlin
|
||||
|
|
|
@ -175,7 +175,7 @@ then
|
|||
|
||||
# Saving cache
|
||||
Save_package_cache chroot
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/binary_package-lists
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/binary_package-lists
|
||||
|
|
|
@ -105,12 +105,12 @@ then
|
|||
|
||||
# Saving cache
|
||||
Save_package_cache chroot
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_hooks
|
||||
fi
|
||||
|
||||
# Remove bind mount of build config inside chroot.
|
||||
umount chroot/live-build/config
|
||||
rmdir chroot/live-build/config
|
||||
rmdir chroot/live-build
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_hooks
|
||||
|
|
|
@ -45,7 +45,7 @@ then
|
|||
Echo_message "Extracting the tarball in the chroot..."
|
||||
Chroot chroot "tar -xvf includes.chroot.tar --no-same-owner --keep-directory-symlink --overwrite"
|
||||
rm chroot/includes.chroot.tar
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/includes.chroot
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/includes.chroot
|
||||
|
|
|
@ -78,7 +78,7 @@ then
|
|||
|
||||
# Remove dependency
|
||||
Remove_package
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_preseed
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/chroot_preseed
|
||||
|
|
|
@ -62,7 +62,7 @@ then
|
|||
cat "${_FILE}" >> "${_DIRECTORY}/preseed.cfg"
|
||||
fi
|
||||
done
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/installer_preseed
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .build/installer_preseed
|
||||
|
|
Loading…
Reference in New Issue