commit 8335e911073a02f2aedb4790540f70d6df81fb58
parent 984879dd7b329a7f9a7aca99357ab566dbe0b087
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 31 Oct 2026 19:13:20 +1100
sup-sync: handle message updates
Fixes #169.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/sup-sync b/bin/sup-sync
@@ -126,7 +126,7 @@ begin
if action == :delete
num_deleted += 1
puts "Deleting #{m.id}" if opts[:verbose]
- elsif action == :add
+ elsif action == :add || action == :update
seen[m.id] = true
## tweak source labels according to commandline arguments if necessary
@@ -174,7 +174,6 @@ begin
puts "Changing flags for #{source}##{m.source_info} from #{old_m.labels} to #{m.labels}" if opts[:verbose]
num_updated += 1
end
- else fail "sup-sync cannot handle :update's"
end
if Time.now - last_info_time > PROGRESS_UPDATE_INTERVAL