Commit 4bbb290
images/server: Simplify loop to detect repo file collision
There's a possibility of an infinite loop if the hashed repo name for
the url happens to exist at the destination. Therefore replace `while`
loop with basic `if` condition and skip the url altogether when hashed
repo name exists.
Signed-off-by: Anoop C S <anoopcs@samba.org>1 parent d9f7d4d commit 4bbb290
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
0 commit comments