summarylogtreecommitdiffstats
path: root/0002-aursync-make-L-optional-281.patch
blob: 9fbdeb9e88e204f4bfc56a35fb1d123bbe06f32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
From 43ee1e5f814886b3f04bf899205ef2c2c03aba02 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/3] 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.16.1