From 9cc19daadf5ce6b93f2bc5ea2e06d800cf8a632f Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Wed, 9 Apr 2025 20:49:58 +0200 Subject: [PATCH] feat: make checkingg for blocke packages more liberal --- scripts/pacman_wrapper.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/pacman_wrapper.sh b/scripts/pacman_wrapper.sh index 55991f2..444c531 100755 --- a/scripts/pacman_wrapper.sh +++ b/scripts/pacman_wrapper.sh @@ -61,10 +61,9 @@ function check_for_steam() { if [[ "$1" == "-S" || "$1" == "-Sy" || "$1" == "-Syu" || "$1" == "-Syyu" || "$1" == "-U" ]]; then # Check all arguments for arg in "$@"; do - # Check if argument matches any restricted packageExecuting: /usr/bin/pacman.orig -U --config /etc/pacman.conf -- /home/kuhy/.cache/yay/seamonkey-bin/seamonkey-bin-2.53.20-1-x86_64.pkg.tar.zst /home/kuhy/.cache/yay/seamonkey-bin/seamonkey-bin-debug-2.53.20-1-x86_64.pkg.tar.zst - + # Check if argument matches any restricted package for package in "${restricted_packages[@]}"; do - if [[ "$arg" == "$package" ]]; then + if [[ "$arg" == "$package" || "$arg" == *"/$package-"* || "$arg" == *"/$package/"* ]]; then return 0 # Restricted package found fi done