diff --git a/aurphan b/aurphan index c5a2b72..bae37d8 100755 --- a/aurphan +++ b/aurphan @@ -275,7 +275,12 @@ aur_sweep() # thread_function empty_message : pretty { thread_fn="$1" empty_msg="$2" - packages=$(pacman -Qmq) + foreign_packages=$(pacman -Qmq) + if [[ "$#" > 2 ]]; then + local_aur_repo="$3" + local_aur_repo_packages=$(pacman -Slq $local_aur_repo) + fi + packages="$foreign_packages $local_aur_repo_packages" if [ -z "$packages" ]; then echo "No AUR packages installed." exit @@ -331,7 +336,10 @@ case "$1" in echo ;; -a|--aur) - aur_sweep rpc_thread "No orphans found." + if [[ "$#" > "1" ]]; then + local_aur_repo="$2" + fi + aur_sweep rpc_thread "No orphans found." $local_aur_repo ;; -m|--maintainer) if [[ "$#" != "2" ]]; then