Use pacman -Sp for figuring out the repo a package is in
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
96b7584153
commit
cdc83819f5
6
prm
6
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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user