OSDN Git Service

[update] : Added nochkver
authorhayao <shun819.mail@gmail.com>
Thu, 16 Jul 2020 12:22:49 +0000 (21:22 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 16 Jul 2020 12:22:49 +0000 (21:22 +0900)
build.sh
default.conf

index 9392b8d..80cf2f3 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -322,6 +322,7 @@ _usage () {
     echo "         --noaur                 No build and install AUR packages."
     echo "         --nocolor               No output colored output."
     echo "         --noconfirm             No check the settings before building."
+    echo "         --nochkver              NO check the version of the channel."
     echo "         --noloopmod             No check and load kernel module automatically."
     echo "         --nodepend              No check package dependencies before building."
     echo "         --noiso                 No build iso image. (Use with --tarball)"
@@ -1330,7 +1331,7 @@ make_iso() {
 # Parse options
 options="${@}"
 _opt_short="a:bc:dg:hjk:lo:p:t:u:w:x"
-_opt_long="arch:,boot-splash,comp-type:,debug,help,lang,japanese,kernel:,cleaning,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,shmkalteriso,msgdebug,noloopmod,tarball,noiso,noaur"
+_opt_long="arch:,boot-splash,comp-type:,debug,help,lang,japanese,kernel:,cleaning,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,shmkalteriso,msgdebug,noloopmod,tarball,noiso,noaur,nochkver"
 OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
 if [[ ${?} != 0 ]]; then
     exit 1
@@ -1453,6 +1454,10 @@ while :; do
             noaur=true
             shift 1
             ;;
+        --nochkver)
+            nochkver=true
+            shift 1
+            ;;
         --)
             shift
             break
@@ -1539,7 +1544,7 @@ if [[ -n "${1}" ]]; then
         _msg_error "Invalid channel ${channel_name}" "1"
     fi
 
-    if [[ ! "$(cat "${script_path}/channels/${channel_name}/alteriso" 2> /dev/null)" = "alteriso=3" ]]; then
+    if [[ ! "$(cat "${script_path}/channels/${channel_name}/alteriso" 2> /dev/null)" = "alteriso=3" ]] && [[ "${nochkver}" = false ]]; then
         _msg_error "This channel does not support AlterISO 3." "1"
     fi
     
index ced2ac2..67197f3 100644 (file)
@@ -148,6 +148,13 @@ noloopmod=false
 # This setting cannot be changed by an argument.
 nochname=false
 
+# Do not check the version of the channel.
+# Use this option only if you want to force builds of AlterISO2 or earlier channels.
+# The structure of the channel is so different that it may lead to unexpected operation, and no guarantee can be given.
+# In particular, the old -j option cannot be used and the japanese variable cannot be used in customize_airootfs.
+# Change the default behavior of "--nochkver".
+nochkver=false
+
 # Does not build the ISO image file.
 # Be sure to set the tarball to true if you want this to be true.
 # Change the default behavior of "--noiso".