arch-ppa/src/aurutils/0002-aursync-make-L-optiona...

70 lines
2.2 KiB
Diff

From 74d0496ad357ca8c65562a028cb5b95888ea71cf Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
Date: Sat, 27 Jan 2018 03:21:37 +0100
Subject: [PATCH 2/7] aursync: make -L optional (#281)
---
bin/aursync | 7 ++++---
man1/aursync.1 | 7 ++++++-
2 files changed, 10 insertions(+), 4 deletions(-)
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.11.0