We should gain SHA256 support as well, but in the meantime this at least
avoids an infinite loop if the Index file has a line we don't recognise.

Closes: #808216
---
 debmirror | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debmirror b/debmirror
index 0c2543c..516b36d 100755
--- a/debmirror
+++ b/debmirror
@@ -2463,6 +2463,9 @@ sub fetch_and_apply_diffs {
        $diff_size{$file} = $size;
       }
     }
+    else {
+      $_ = <INDEX>;
+    }
   }
   close(INDEX);
 
-- 
2.6.3

Reply via email to