OSDN Git Service

[fix] : Fixed share package list
authorhayao <hayao@fascode.net>
Fri, 5 Mar 2021 06:01:42 +0000 (15:01 +0900)
committerhayao <hayao@fascode.net>
Fri, 5 Mar 2021 06:01:42 +0000 (15:01 +0900)
build.sh
tools/pkglist.sh

index fbff75a..29845f8 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -541,7 +541,6 @@ make_packages_repo() {
 
     # get pkglist
     if [[ "${boot_splash}"   = true ]]; then _pkglist_args+=" -b"; fi
-    if [[ "${include_extra}" = true ]]; then _pkglist_args+=" -e"; fi
     if [[ "${debug}"         = true ]]; then _pkglist_args+=" -d"; fi
     if [[ "${memtest86}"     = true ]]; then _pkglist_args+=" -m"; fi
     _pkgbuild_dirs+=" ${modules[*]}"
@@ -563,9 +562,6 @@ make_packages_aur() {
     if [[ "${boot_splash}" = true ]]; then
         _pkglist_args+=" -b"
     fi
-    if [[ "${include_extra}" = true ]]; then
-        _pkglist_args+=" -e"
-    fi
     if [[ "${debug}" = true ]]; then
         _pkglist_args+=" -d"
     fi
index 902c92b..a25ce8d 100755 (executable)
@@ -9,7 +9,6 @@ modules=()
 boot_splash=false
 aur=false
 pkgdir_name="packages"
-extra=false
 line=false
 debug=false
 memtest86=false
@@ -30,7 +29,6 @@ _help() {
     echo "    -b | --boot-splash        Enable boot splash"
     echo "    -c | --channel [dir]      Specify the channel directory"
     echo "    -d | --debug              Enable debug message"
-    echo "    -e | --extra              Include extra packages"
     echo "    -k | --kernel [kernel]    Specify the kernel"
     echo "    -l | --locale [locale]    Specify the locale"
     echo "    -m | --memtest86          Enable memtest86 package"
@@ -73,8 +71,8 @@ msg_debug() {
 
 # Parse options
 ARGUMENT="${@}"
-opt_short="a:bc:dek:l:mh"
-opt_long="arch:,boot-splash,channel:,debug,extra,kernel:,locale:,memtest86,aur,help,line"
+opt_short="a:bc:dk:l:mh"
+opt_long="arch:,boot-splash,channel:,debug,kernel:,locale:,memtest86,aur,help,line"
 if ! OPT=$(getopt -o ${opt_short} -l ${opt_long} -- ${ARGUMENT}); then
     exit 1
 fi
@@ -100,10 +98,6 @@ while true; do
             debug=true
             shift 1
             ;;
-        -e | --extra)
-            extra=true
-            shift 1
-            ;;
         -k | --kernel)
             kernel="${2}"
             shift 2
@@ -179,26 +173,15 @@ for_module '_loadfilelist+=(${module_dir}/{}/${pkgdir_name}.${arch}/kernel/${ker
 
 # Plymouth package list
 if [[ "${boot_splash}" = true ]]; then
-    _loadfilelist+=(
-        $(ls ${share_dir}/${pkgdir_name}.${arch}/plymouth/*.${arch} 2> /dev/null)
-        $(ls ${channel_dir}/${pkgdir_name}.${arch}/plymouth/*.${arch} 2> /dev/null)
-    )
-
+    _loadfilelist+=($(ls ${channel_dir}/${pkgdir_name}.${arch}/plymouth/*.${arch} 2> /dev/null))
     for_module '_loadfilelist+=($(ls ${module_dir}/{}/${pkgdir_name}.${arch}/plymouth/*.${arch} 2> /dev/null))'
 fi
 
 # memtest86 package list
 if [[ "${memtest86}" = true ]]; then
-    _loadfilelist+=(
-        $(ls ${share_dir}/${pkgdir_name}.${arch}/memtest86/*.${arch} 2> /dev/null)
-        $(ls ${channel_dir}/${pkgdir_name}.${arch}/memtest86/*.${arch} 2> /dev/null)
-    )
-
-    if [[ "${extra}" = true ]]; then
-        _loadfilelist+=(
-            $(ls ${extra_dir}/${pkgdir_name}.${arch}/memtest86/*.${arch} 2> /dev/null)
-        )
-    fi
+    _loadfilelist+=($(ls ${channel_dir}/${pkgdir_name}.${arch}/memtest86/*.${arch} 2> /dev/null))
+
+    for_module '_loadfilelist+=($(ls ${module_dir}/{}/${pkgdir_name}.${arch}/memtest86/*.${arch} 2> /dev/null))'
 fi
 
 #-- Read package list --#