bump version; add iso/pkg chroot check version functions
This commit is contained in:
parent
460c4ffbcf
commit
11c20b13ce
3 changed files with 22 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -1,4 +1,4 @@
|
||||||
V=0.9.7.4
|
V=0.9.7.5
|
||||||
|
|
||||||
PREFIX = $(PREFIX)/local
|
PREFIX = $(PREFIX)/local
|
||||||
|
|
||||||
|
|
|
@ -503,6 +503,16 @@ load_profile(){
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_chroot_iso_version(){
|
||||||
|
echo $(cat ${work_dir}/root-image/.manjaro-tools)
|
||||||
|
}
|
||||||
|
|
||||||
|
check_chroot_iso_version(){
|
||||||
|
if [[ ${version} != $(get_chroot_iso_version) ]];then
|
||||||
|
msg "Your chroot version is outdated. please use the -c switch to recreate the chroot."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
compress_images(){
|
compress_images(){
|
||||||
local timer=$(get_timer)
|
local timer=$(get_timer)
|
||||||
make_iso
|
make_iso
|
||||||
|
|
|
@ -9,6 +9,17 @@
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
get_chroot_pkg_version(){
|
||||||
|
echo $(cat ${work_dir}/root/.manjaro-tools)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
check_chroot_pkg_version(){
|
||||||
|
if [[ ${version} != $(get_chroot_iso_version) ]];then
|
||||||
|
msg "Your chroot version is outdated. please use the -c switch to recreate the chroot."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
chroot_create(){
|
chroot_create(){
|
||||||
msg "Creating chroot for [${branch}] (${arch})..."
|
msg "Creating chroot for [${branch}] (${arch})..."
|
||||||
mkdir -p "${work_dir}"
|
mkdir -p "${work_dir}"
|
||||||
|
|
Loading…
Reference in a new issue