From 918d7b5b08bf6d65825d9f88cc939ac0eb92df03 Mon Sep 17 00:00:00 2001
From: Don Armstrong <don@donarmstrong.com>
Date: Mon, 7 Aug 2017 10:27:30 -0700
Subject: [PATCH] only update the @bugs_to_update

---
 bin/debbugs-loadsql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/debbugs-loadsql b/bin/debbugs-loadsql
index f37a8ef6..c583af03 100755
--- a/bin/debbugs-loadsql
+++ b/bin/debbugs-loadsql
@@ -307,7 +307,7 @@ sub add_bugs {
 		}
 		eval {
 		  $s->txn_do(sub {
-			       for my $bug (@bugs) {
+			       for my $bug (@bugs_to_update) {
 				 load_bug(db => $s,
 					  bug => $bug,
 					  tags => \%tags,
-- 
2.39.5