diff options
author | Erich Eckner <git@eckner.net> | 2019-04-26 08:34:14 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-04-26 08:34:14 +0200 |
commit | d7b322a4f174111aadd79bd64d0940e65c535fb0 (patch) | |
tree | c0bb599f56e376716bbe7d7736269f81fb30bd69 | |
parent | 99b03cc815a25e53e01f6c819a7edc838cf79d57 (diff) | |
download | archlinuxewe-d7b322a4f174111aadd79bd64d0940e65c535fb0.tar.xz |
checkDependencies: only consider least stable available package
-rwxr-xr-x | checkDependencies | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/checkDependencies b/checkDependencies index 4adabae03..b3d216d19 100755 --- a/checkDependencies +++ b/checkDependencies @@ -117,6 +117,27 @@ else packages=$(cat "${cache_file}") fi +packages=$( + join -j1 -o2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9 <( + printf '%s\n' "${packages}" \ + | awk '{print $3" "$2":"$4}' \ + | sort -u \ + | sed ' + s/^testing/0 \0/ + t + s/^/1 / + ' \ + | sort -k3,3 -k1n,1 -k2,2 \ + | uniq -f2 \ + | awk '{print $2":"$3}' \ + | sort -k1,1 + ) <( + printf '%s\n' "${packages}" \ + | awk '{print $3":"$2":"$4" "$0}' \ + | sort -k1,1 + ) +) + matched_dependencies=$( join -1 1 -2 3 -o 1.1,2.1,2.2,2.5,1.3,2.4,1.2 <( printf '%s\n' "${packages}" \ |