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
|
if (( ! "$?" )); then
|
||||||
repo='aur'
|
repo='aur'
|
||||||
else
|
else
|
||||||
while read -r; do
|
read -r repo < <( pacman -Sp --print-format '%r' )
|
||||||
if [[ "$REPLY" =~ ^Repository ]]; then
|
|
||||||
repo="${REPLY##* }"
|
|
||||||
fi
|
|
||||||
done < <( pacman -Si "$package" )
|
|
||||||
|
|
||||||
[[ "$repo" ]] || {
|
[[ "$repo" ]] || {
|
||||||
err "Can't find package %s\n" "$package"
|
err "Can't find package %s\n" "$package"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user