From 8fb74637fe775922bc91dc87fb4a2bab9d779008 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Tue, 27 Jun 2023 22:23:58 +0200 Subject: [PATCH] Fix issues with bash 5.2 This new version has some compatiblity issues, see the issue at https://bugs.archlinux.org/task/76035 --- patches/pacman-6.0.1.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/patches/pacman-6.0.1.patch b/patches/pacman-6.0.1.patch index e714b6e..4fd39ea 100644 --- a/patches/pacman-6.0.1.patch +++ b/patches/pacman-6.0.1.patch @@ -138,3 +138,15 @@ index e398855..15b00de 100644 pm_printf(ALPM_LOG_ERROR, _("you cannot perform this operation unless you are root.\n")); cleanup(EXIT_FAILURE); } +diff --git a/scripts/libmakepkg/lint_package/dotfiles.sh.in b/scripts/libmakepkg/lint_package/dotfiles.sh.in +index 0b993dd4..4c447bd0 100644 +--- a/scripts/libmakepkg/lint_package/dotfiles.sh.in ++++ b/scripts/libmakepkg/lint_package/dotfiles.sh.in +@@ -34,6 +34,7 @@ check_dotfiles() { + shopt -s nullglob + + for f in "$pkgdir"/.*; do ++ [[ -e "${f}" ]] || continue + [[ ${f##*/} == . || ${f##*/} == .. ]] && continue + error "$(gettext "Dotfile found in package root '%s'")" "$f" + ret=1