[aur-general] changing the status of the maintainer field
Abhishek Dasgupta
abhidg at gmail.com
Sat May 30 02:59:12 EDT 2009
2009/5/30 Abhishek Dasgupta <abhidg at gmail.com>:
> I'll write a script to fetch the maintainers of all packages in the
> official repositories and store them in a simple text file, so that
> people who need the maintainer information for the whole archive
> can just use that instead of polling archlinux.org
>
The list of maintainers will soon be at
http://abhidg.mine.nu/arch/maintainers.txt
It'll be updated daily at 0430 UTC.
The script used is given below:
#!/bin/sh
URL="http://www.archlinux.org/packages"
OUTPUT=/arch/maintainers.txt
arch=i686
if [ ! -f /etc/abs.conf ]; then
echo "This program needs 'abs' (pacman -S abs)."
exit 1
fi
if [ ! -x /usr/bin/curl ]; then
echo "This program needs 'curl' (pacman -S curl)."
exit 1
fi
. /etc/abs.conf
pushd "$ABSROOT" >/dev/null
for repo in core extra; do
pushd $repo >/dev/null
for i in *; do
maintainer="$(curl -s $URL/$repo/$arch/$i/maintainer/)"
if ! (echo $maintainer | grep -q DOCTYPE); then
echo "$i $maintainer" >> $OUTPUT.new
fi
done
popd >/dev/null
done
if [ -f "$OUTPUT" ]; then
mv "$OUTPUT" "$OUTPUT.old"
fi
mv "$OUTPUT.new" "$OUTPUT"
--
Abhishek
More information about the aur-general
mailing list