Updated msys2

This commit is contained in:
gator96100 2019-08-16 02:06:21 +02:00
commit f0dc1ea8b0
13308 changed files with 689276 additions and 46605 deletions

View file

@ -3,7 +3,6 @@
# pacscripts : tries to print out the {pre,post}_{install,remove,upgrade}
# scripts of a given package
#
# Copyright (c) 2009 Giulio "giulivo" Fidente <giulivo.navigante@gmail.com>
# Copyright (c) 2009 Xavier Chantry <shiningxc@gmail.com>
# Copyright (c) 2009-2016 Pacman Development Team <pacman-dev@archlinux.org>
#
@ -26,19 +25,7 @@ set -o nounset
set -o errexit
declare -r myname='pacscripts'
declare -r myver='5.0.1'
conf="/etc/pacman.conf"
if [ ! -r "$conf" ]; then
echo "ERROR: unable to read $conf"
exit 1
fi
eval $(awk '/DBPath/ {print $1$2$3}' "$conf")
eval $(awk '/CacheDir/ {print $1$2$3}' "$conf")
pac_db="${DBPath:-/var/lib/pacman}/local"
pac_cache="${CacheDir:-/var/cache/pacman/pkg}"
declare -r myver='1.0.0'
error() {
local mesg=$1; shift
@ -46,7 +33,7 @@ error() {
}
usage() {
echo "${myname} (pacman) v${myver}"
echo "${myname} v${myver}"
echo
echo "Prints the {pre,post}_{install,remove,upgrade} scripts of a given package."
echo
@ -60,6 +47,15 @@ usage() {
echo "Example: ${myname} gconf-editor-3.0.1-3-x86_64.pkg.tar.xz"
}
if ! DBPath="$(pacman-conf DBPath)"; then
error "unable to read /etc/pacman.conf"
exit 1
fi
CacheDir="$(pacman-conf CacheDir)"
pac_db="${DBPath:-/var/lib/pacman}/local"
pac_cache="${CacheDir:-/var/cache/pacman/pkg}"
version() {
printf "%s %s\n" "$myname" "$myver"
echo 'Copyright (c) 2009 Giulio "giulivo" Fidente <giulivo.navigante@gmail.com>'
@ -126,6 +122,6 @@ fi
case "$1" in
--help|-h) usage; exit 0 ;;
--version|-V) version; exit 0 ;;
--version|-v) version; exit 0 ;;
*) print_scriptlet $1 ;;
esac