Skip to content

Commit fb3285a

Browse files
committed
[update] : Supported --pacman-debug
1 parent 453111f commit fb3285a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

build.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ _usage () {
195195
echo " --noloopmod No check and load kernel module automatically"
196196
echo " --nodepend No check package dependencies before building"
197197
echo " --noiso No build iso image (Use with --tarball)"
198+
echo " --pacman-debug Enable pacman debug mode"
198199
echo " --shmkalteriso Use the shell script version of mkalteriso"
199200
echo
200201
echo " Many packages are installed from AUR, so specifying --noaur can cause problems."
@@ -624,6 +625,7 @@ prepare_build() {
624625
check_bool nocolor
625626
check_bool msgdebug
626627
check_bool noefi
628+
check_bool pacman_debug
627629

628630
# Check architecture for each channel
629631
if [[ ! "$(bash "${script_path}/tools/channel.sh" -a ${arch} -n -b check "${channel_name}")" = "correct" ]]; then
@@ -1135,7 +1137,7 @@ make_iso() {
11351137
# Parse options
11361138
ARGUMENT="${@}"
11371139
_opt_short="a:bc:deg:hjk:l:o:p:rt:u:w:x"
1138-
_opt_long="arch:,boot-splash,comp-type:,debug,cleaning,cleanup,gpgkey:,help,lang:,japanese,kernel:,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,shmkalteriso,msgdebug,noloopmod,tarball,noiso,noaur,nochkver,channellist,config:,noefi,nodebug"
1140+
_opt_long="arch:,boot-splash,comp-type:,debug,cleaning,cleanup,gpgkey:,help,lang:,japanese,kernel:,out:,password:,comp-opts:,user:,work:,bash-debug,nocolor,noconfirm,nodepend,gitversion,shmkalteriso,msgdebug,noloopmod,tarball,noiso,noaur,nochkver,channellist,config:,noefi,nodebug,pacman-debug"
11391141
OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- ${DEFAULT_ARGUMENT} ${ARGUMENT})
11401142
[[ ${?} != 0 ]] && exit 1
11411143

@@ -1283,8 +1285,12 @@ while :; do
12831285
;;
12841286
--config)
12851287
source "${2}"
1286-
shift 2
1287-
;;
1288+
shift 2
1289+
;;
1290+
--pacman-debug)
1291+
pacman_debug=true
1292+
shift 1
1293+
;;
12881294
--)
12891295
shift
12901296
break

default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ noaur=false
239239
# If debug is set to true, debug messages useful for channel development will be displayed.
240240
bash_debug=false
241241
debug=false
242+
pacman_debug=false
242243

243244
# If set to true, enable message debag.
244245
# This option previously debugged the message output in build.sh, but now it debugs msg.sh.

0 commit comments

Comments
 (0)