diff --git a/prm b/prm index d01f8ec..a85a9c1 100755 --- a/prm +++ b/prm @@ -303,11 +303,7 @@ main() { if (( ! "$?" )); then repo='aur' else - while read -r; do - if [[ "$REPLY" =~ ^Repository ]]; then - repo="${REPLY##* }" - fi - done < <( pacman -Si "$package" ) + read -r repo < <( pacman -Sp --print-format '%r' ) [[ "$repo" ]] || { err "Can't find package %s\n" "$package"