aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-03-04 08:01:30 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-03-04 08:01:30 +0800
commitca3b8902af0723e10de4bd5f81bde0d7e4090fcc (patch)
tree76a8f0a9b8a85c96695ca8ae60ac52ee00f35acc
parent58105995a7aaa1783771cf2d4d0ac94590e48aa0 (diff)
downloadautils-ca3b8902af0723e10de4bd5f81bde0d7e4090fcc.tar.gz
autils-ca3b8902af0723e10de4bd5f81bde0d7e4090fcc.zip
fix pkgoutdate
-rwxr-xr-xapkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/apkg b/apkg
index 969f2ab..f8ffa36 100755
--- a/apkg
+++ b/apkg
@@ -478,7 +478,7 @@ pkg_outdate() {
printf "%s\n" "$APKG_MASK" | tr ' ' '\n' | grep -xq $n && continue
}
[ "$(pkg_path $n)" ] || continue
- nv="$(grep ^version= $(pkg_path $n)/abuild | awk -F = '{print $2}')-$(grep ^release= $(pkg_path $n)/abuild | awk -F = '{print $2}')"
+ nv="$(grep ^version= $(pkg_path $n)/abuild | tail -n1 | awk -F = '{print $2}')-$(grep ^release= $(pkg_path $n)/abuild | awk -F = '{print $2}')"
[ "$nv" ] || continue
[ "$v" = "$nv" ] || printf "%s\n" "$n $v -> $nv"
done