Last active
December 5, 2019 17:30
-
-
Save John-Gee/79e4b9d83982c3ec887682f66582e29d to your computer and use it in GitHub Desktop.
packagedropped
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
localPackager=`grep "PACKAGER=" /etc/makepkg.conf | sed -n 's/PACKAGER=//p' | tr '[:upper:]' '[:lower:]'` | |
localPackager="${localPackager%\"}" | |
localPackager="${localPackager#\"}" | |
echo "Local Packager: $localPackager" | |
if [ "${localPackager:0:1}" = "#" ] | |
then | |
localPackager="unknown packager" | |
fi | |
for package in $(pacman -Qm | awk '{ print $1; }') | |
do | |
packager=`LC_ALL=C pacman -Qi "$package" | grep Packager | cut -d: -f 2- | cut -c 2- | tr '[:upper:]' '[:lower:]'` | |
if [ "$packager" != "$localPackager" ] | |
then | |
echo "Package $package is not in repos" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment