Skip to content

Commit 3d31993

Browse files
author
Git for Windows Build Agent
committed
Update 14 packages
apr (1.7.6-2 -> 1.7.6-3) apr-util (1.6.5-1 -> 1.6.5-2) bsdcpio (3.8.11-2 -> 3.8.11-3) bsdtar (3.8.11-2 -> 3.8.11-3) libarchive (3.8.11-2 -> 3.8.11-3) libffi (3.8.0-1 -> 3.8.1-1) libp11-kit (0.26.5-1 -> 0.26.6-1) libutil-linux (2.40.2-2 -> 2.42.4-1) p11-kit (0.26.5-1 -> 0.26.6-1) pacman-contrib (1.10.6-2 -> 1.13.1-1) patchutils (0.4.3-1 -> 0.4.5-1) perl (5.42.3-3 -> 5.42.3-5) sed (4.9-1 -> 4.10-1) util-linux (2.40.2-2 -> 2.42.4-1) Signed-off-by: Git for Windows Build Agent <[email protected]>
1 parent 14e96b5 commit 3d31993

549 files changed

Lines changed: 2029 additions & 1183 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎etc/conf.d/pacman-contrib‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Pacman-Contrib arguments
2+
#
3+
# The PACCACHE_ARGS environment variable is used to provide flags
4+
# and extra arguments to `paccache` when running paccache.service.
5+
# See `man 8 paccache` or `paccache --help` for further information.
6+
7+
PACCACHE_ARGS=

‎usr/bin/agetty.exe‎

13.3 KB
Binary file not shown.

‎usr/bin/bits.exe‎

34.9 KB
Binary file not shown.

‎usr/bin/blkid.exe‎

9.11 KB
Binary file not shown.

‎usr/bin/bsdcpio.exe‎

0 Bytes
Binary file not shown.

‎usr/bin/bsdtar.exe‎

0 Bytes
Binary file not shown.

‎usr/bin/cal.exe‎

5.13 KB
Binary file not shown.

‎usr/bin/cfdisk.exe‎

4.18 KB
Binary file not shown.

‎usr/bin/checkupdates‎

Lines changed: 33 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
#!/usr/bin/bash
22
#
3-
# checkupdates: Safely print a list of pending updates.
3+
# checkupdates - Safely print a list of pending updates
44
#
5-
# Copyright (c) 2013 Kyle Keen <[email protected]>
5+
# Copyright (c) 2013 Kyle Keen <[email protected]>
66
#
7-
# This program is free software; you can redistribute it and/or modify
8-
# it under the terms of the GNU General Public License as published by
9-
# the Free Software Foundation; either version 2 of the License, or
10-
# (at your option) any later version.
7+
# This program is free software; you can redistribute it and/or
8+
# modify it under the terms of the GNU General Public License
9+
# as published by the Free Software Foundation; either version 2
10+
# of the License, or (at your option) any later version.
1111
#
12-
# This program is distributed in the hope that it will be useful,
13-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
# GNU General Public License for more details.
16-
#
17-
# You should have received a copy of the GNU General Public License
18-
# along with this program. If not, see <https://www.gnu.org/licenses/>.
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
1916
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
2019

2120
declare -r myname='checkupdates'
22-
declare -r myver='1.10.6'
23-
24-
LIBRARY=${LIBRARY:-'/usr/share/makepkg'}
21+
declare -r myver='1.13.1'
22+
declare LIBRARY=${LIBRARY:-'/usr/share/makepkg'}
2523

26-
DOWNLOAD_CACHE=0
27-
SYNC=1
28-
USE_COLOR=1
24+
declare -a PACMAN_COLOR
25+
declare -i DOWNLOAD_CACHE=0
26+
declare -i SYNC=1
27+
declare -i USE_COLOR=1
2928

3029
# Import libmakepkg
3130
# shellcheck source=/dev/null
@@ -38,17 +37,8 @@ die() {
3837
exit 1
3938
}
4039

41-
runcmd() {
42-
if (( EUID != 0 )); then
43-
msg 'Escalating privileges using sudo'
44-
if sudo -v &>/dev/null && sudo -l &>/dev/null; then
45-
sudo "$@"
46-
else
47-
die 'Failed to escalate'
48-
fi
49-
else
50-
"$@"
51-
fi
40+
runasroot() {
41+
"$@"
5242
}
5343

5444
usage() {
@@ -62,10 +52,10 @@ Usage: ${myname} [options]
6252
Options:
6353
-c, --change print only when available updates differ from the last --change run
6454
-d, --download download pending updates to the pacman cache
55+
-h, --help display this help message and exit
6556
--nocolor do not colorize output (listing color also dependent on Color
6657
option in pacman.conf)
6758
-n, --nosync do not sync the temporary database
68-
-h, --help display this help message and exit
6959
-V, --version display version information and exit
7060
7161
Environment Variables:
@@ -82,8 +72,8 @@ version() {
8272
printf "%s %s\n" "$myname" "$myver"
8373
}
8474

85-
OPT_SHORT='dnchV'
86-
OPT_LONG=('download' 'nocolor' 'nosync' 'change' 'help' 'version')
75+
OPT_SHORT='cdhnV'
76+
OPT_LONG=('change' 'download' 'help' 'nocolor' 'nosync' 'version')
8777

8878
if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then
8979
exit 1
@@ -93,17 +83,17 @@ unset OPT_SHORT OPT_LONG OPTRET
9383

9484
while :; do
9585
case $1 in
86+
-c|--change)
87+
CHANGE=1 ;;
9688
-d|--download)
9789
DOWNLOAD_CACHE=1 ;;
90+
-h|--help)
91+
usage
92+
exit 0 ;;
9893
--nocolor)
9994
USE_COLOR=0 ;;
10095
-n|--nosync)
10196
SYNC=0 ;;
102-
-c|--change)
103-
CHANGE=1 ;;
104-
-h|--help)
105-
usage
106-
exit 0 ;;
10797
-V|--version)
10898
version
10999
exit 0 ;;
@@ -120,7 +110,7 @@ if [[ -t 2 ]] && (( USE_COLOR )); then
120110

121111
# check if pacman colors are to be kept in the updates array
122112
if pacman-conf | grep -q Color; then
123-
PACMAN_COLOR=1
113+
PACMAN_COLOR=(--color always)
124114
fi
125115
else
126116
unset ALL_OFF BOLD BLUE GREEN RED YELLOW
@@ -144,16 +134,12 @@ fi
144134
if (( SYNC )); then
145135
mkdir -p "$CHECKUPDATES_DB"
146136
ln -s "${DBPath}/local" "$CHECKUPDATES_DB" &> /dev/null
147-
if ! pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null; then
137+
if ! pacman -Sy --disable-sandbox-filesystem --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/null; then
148138
die 'Cannot fetch updates'
149139
fi
150140
fi
151141

152-
if (( PACMAN_COLOR )); then
153-
mapfile -t updates < <(pacman --color always -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]')
154-
else
155-
mapfile -t updates < <(pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]')
156-
fi
142+
mapfile -t updates < <(pacman -Qu --dbpath "$CHECKUPDATES_DB" "${PACMAN_COLOR[@]}" 2> /dev/null | grep -v '\[.*\]')
157143

158144
if (( ${#updates[@]} )); then
159145
if (( CHANGE )); then
@@ -168,10 +154,10 @@ if (( ${#updates[@]} )); then
168154
else
169155
printf '%s\n' "${updates[@]}"
170156
if (( DOWNLOAD_CACHE )); then
171-
if (( PACMAN_COLOR )); then
157+
if (( "${#PACMAN_COLOR[@]}" )); then
172158
updates=("${updates[@]#*m}")
173159
fi
174-
runcmd pacman -Sw --noconfirm "${updates[@]%% *}" --dbpath "$CHECKUPDATES_DB" --logfile /dev/null
160+
runasroot pacman -Sw --noconfirm "${updates[@]%% *}" --dbpath "$CHECKUPDATES_DB" --logfile /dev/null
175161
fi
176162
fi
177163
else

‎usr/bin/chrt.exe‎

1.53 KB
Binary file not shown.

0 commit comments

Comments
 (0)