Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (24 sloc) 0.611 kb
#!/bin/bash
ignored() {
local pkg=$1
for i in "${ignored[@]}"; do
[[ $pkg = $i ]] && return 0
done
return 1
}
while read -a i; do
ignored+=("${i[@]}")
done < <(sed '/^[[:space:]]*IgnorePkg/!d;s|.*=[[:space:]]*||' /etc/pacman.conf)
declare -A updates
while read upd ver; do
if ignored "$upd"; then
printf ':: ignoring %s\n' "$upd"
continue
fi
updates["$upd"]=$ver
done < <(pacman -Qu)
(( ${#updates[*]} )) || exit 0
while read pkg newver; do
printf '%-40.40s %12s => %s\n' "$pkg" "${updates[${pkg#*/}]}" "$newver"
done < <(expac -1S '%r/%n %v' "${!updates[@]}") | sort
exit 1
Jump to Line
Something went wrong with that request. Please try again.