summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-04 13:48:06 +0200
committerErich Eckner <git@eckner.net>2017-09-04 13:48:06 +0200
commit827c9085a729f64cddc01a89c9a013ad10221f8f (patch)
tree30dc5bf4be335436fcd48d97288ceaf25969c02a /bin
parent0adea631c2e1d14b65b3a9157a2421c1928c7df4 (diff)
downloadbuilder-827c9085a729f64cddc01a89c9a013ad10221f8f.tar.xz
bin/get-package-updates: delete first, update then
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates9
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