diff options
author | Erich Eckner <git@eckner.net> | 2017-09-04 13:48:06 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-04 13:48:06 +0200 |
commit | 827c9085a729f64cddc01a89c9a013ad10221f8f (patch) | |
tree | 30dc5bf4be335436fcd48d97288ceaf25969c02a /bin | |
parent | 0adea631c2e1d14b65b3a9157a2421c1928c7df4 (diff) | |
download | builder-827c9085a729f64cddc01a89c9a013ad10221f8f.tar.xz |
bin/get-package-updates: delete first, update then
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/get-package-updates | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates index 952d1ce..1d901da 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -183,6 +183,15 @@ for repo in ${repo_names}; do sed 's|^\(\S\+\) \(.\)\t\([^/]\+\)/repos/\([^/]\+\)-[^/-]\+/PKGBUILD$|\2 \3 \1 \4|' done | \ sort -u | \ + sed ' + s|^D\s|0 \0| + t + s|^[AM]\s|1 \0| + t + s|^|2 | + ' | \ + sort -k1,1 | \ + sed 's|^[012] ||' | \ while read -r mode package git_revision repository; do case "${mode}" in |