From 92a9741c4cd98f8b71f558d57f46f85c8a95b597 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sat, 8 Sep 2018 15:52:17 -0400 Subject: [PATCH] Fix add more methods to ppa --- ppa | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ppa b/ppa index a103305..8b3055a 100755 --- a/ppa +++ b/ppa @@ -161,9 +161,16 @@ list_official_packages() { ls | xargs -n1 -I {} pacman -Ss '^{}$' | egrep -v "^($repo_name| )" } +list_installed_paclist() { + paclist $repo_name | cut -d' ' -f1 +} + +list_installed() { + comm -12 <(pacman -Qq | sort) <(pacman -Slq $repo_name | sort) +} + reinstall() { - paclist $repo_name | cut -d' ' -f1 | xargs sudo pacman -S --noconfirm - comm -12 <(pacman -Qq | sort) <(pacman -Slq $repo_name | sort) | xargs sudo pacman -S --noconfirm + list_installed | xargs sudo pacman -S --noconfirm } clean() {