Scripts for automating common aurutils tasks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
849 B

filter_vcs() {
awk -v "mask=$AURVCS" '$1 ~ mask {print $1}' "$@"
# Note that valid PKGBUILDs cannot contain \n in pkgname.
get_latest_revision() {
grep -Fxf - <(printf '%s\n' *) | xargs -r aur srcver
trap 'rm -rf "$db_tmp"' EXIT
# Retrieve a list of the local repository contents. The repository
# can be specified with the usual aur-repo arguments.
aur repo --list "$@" >"$db_tmp"
# Find VCS packages that are outdated according to aur-srcver.
# This checks out the latest revision for existing source directories,
# assuming the PKGBUILD has been viewed priorly.
if cd "$AURDEST"; then
aur vercmp -p <(filter_vcs "$db_tmp" | get_latest_revision) <"$db_tmp"