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