summarylogtreecommitdiffstats
path: root/0003-aursync-make-L-optional-281.patch
blob: 4402e0c627c43e52eb947c327148b2b3f60f43ef (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
From 3ed30e94e974988acd36c77dd73820366a311ff0 Mon Sep 17 00:00:00 2001
From: Alad Wenter <alad@mailbox.org>
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