Delete packages that are now official

This commit is contained in:
moparisthebest
2018-09-08 15:48:14 -04:00
parent f263c28d82
commit 0953112db9
19 changed files with 6 additions and 495 deletions

6
ppa
View File

@@ -156,8 +156,14 @@ echo_changed() {
git diff-tree --no-commit-id --name-status -r "$commit" | grep -v ^D | grep PKGBUILD$ | sed -e 's@/PKGBUILD$@@' -e 's@.*/@@' | tr '\n' ' '
}
list_official_packages() {
cd "$src_dir"
ls | xargs -n1 -I {} pacman -Ss '^{}$' | egrep -v "^($repo_name| )"
}
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
}
clean() {