From 3ed30e94e974988acd36c77dd73820366a311ff0 Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Sat, 27 Jan 2018 03:21:37 +0100 Subject: [PATCH] aursync: make -L optional (#281) --- bin/aurbuild | 2 +- bin/aursync | 7 ++++--- man1/aursync.1 | 7 ++++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/aurbuild b/bin/aurbuild index 05df8b0..babd81d 100755 --- a/bin/aurbuild +++ b/bin/aurbuild @@ -5,7 +5,7 @@ readonly PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' set -e declare -a gpg_args=(--detach-sign --no-armor --verbose --batch) -declare -a makechrootpkg_args=(-cnu) makepkg_args=(-Lcrs) +declare -a makechrootpkg_args=(-cnu) makepkg_args=(-crs) declare -i chroot=0 sign_pkg=0 conf_chroot() { diff --git a/bin/aursync b/bin/aursync index fdf485d..1a96c0d 100755 --- a/bin/aursync +++ b/bin/aursync @@ -58,9 +58,9 @@ if getopt -T || (($? != 4)); then exit 22 fi -longopts=allan,bind:,chroot,container:,force,help,ignore:,no-confirm,no-ver,no-view,print,rmdeps,sign,tar,temp,repo:,root:,update +longopts=allan,bind:,chroot,container:,force,help,ignore:,no-confirm,no-ver,no-view,print,rmdeps,sign,tar,temp,repo:,root:,update,log -if TEMP=$(getopt -o B:cC:fhnprstTu -l "$longopts" -n "$argv0" -- "$@"); then +if TEMP=$(getopt -o B:cC:fhLnprstTu -l "$longopts" -n "$argv0" -- "$@"); then eval set -- "$TEMP" else usage @@ -78,6 +78,7 @@ while true; do -f|--force) local_args+=(-f); shift ;; -n|--no-confirm) local_args+=(--noconfirm); shift ;; -r|--rmdeps) local_args+=(-r); shift ;; + -L|--log) local_args+=(-L); shift ;; -p|--print) printonly=1; shift ;; -t|--tar) snapshot=1; shift ;; -u|--update) update=1; shift ;; @@ -103,7 +104,7 @@ fi if ((chroot)); then makepkg_args=(-cnu "${chroot_args[@]}") else - makepkg_args=(-Lcs "${local_args[@]}") + makepkg_args=(-cs "${local_args[@]}") fi if ! (($# + update)); then diff --git a/man1/aursync.1 b/man1/aursync.1 index 5569c36..834afd7 100644 --- a/man1/aursync.1 +++ b/man1/aursync.1 @@ -78,13 +78,18 @@ value of the configured repository. .RE .SS makepkg -The default set of options is \fImakepkg -Lcrs\fR. +The default set of options is \fImakepkg -cs\fR. .B \-f, --force .RS Overwrite built packages. (\fImakepkg -f\fR) .RE +.B \-L, --log +.RS +Enable logging to a text file in the build directory. (\fImakepkg -L\fR) +.RE + .B \-n, --no-confirm .RS Do not wait for user input. (\fImakepkg --noconfirm\fR) -- 2.16.1