Commit 475f536
committed
tugger-debian: honor
Modern Debian repositories set an `Acquire-By-Hash: yes` field
to trigger clients to fetch URLs containing the content digest of the
entity they are fetching. We had support for parsing this field but
weren't keying off of it.
This commit implements functionality for resolving the `by-hash` path
for a release file entry and automatically using it if the release
file says to use acquire-by-hash mode.
Pre-existing tests should now fetch teh by-hash URLs. The tests
pass, indicating this functionality apparently works.Acquire-By-Hash: yes setting1 parent b343587 commit 475f536
2 files changed
+51
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
289 | | - | |
| 294 | + | |
290 | 295 | | |
291 | 296 | | |
292 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
| |||
136 | 145 | | |
137 | 146 | | |
138 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
139 | 168 | | |
140 | 169 | | |
141 | 170 | | |
| |||
608 | 637 | | |
609 | 638 | | |
610 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
611 | 644 | | |
612 | 645 | | |
613 | 646 | | |
| |||
616 | 649 | | |
617 | 650 | | |
618 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
619 | 656 | | |
620 | 657 | | |
621 | 658 | | |
| |||
624 | 661 | | |
625 | 662 | | |
626 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
627 | 668 | | |
628 | 669 | | |
629 | 670 | | |
| |||
642 | 683 | | |
643 | 684 | | |
644 | 685 | | |
| 686 | + | |
645 | 687 | | |
646 | 688 | | |
647 | 689 | | |
| |||
652 | 694 | | |
653 | 695 | | |
654 | 696 | | |
| 697 | + | |
655 | 698 | | |
656 | 699 | | |
657 | 700 | | |
| |||
662 | 705 | | |
663 | 706 | | |
664 | 707 | | |
| 708 | + | |
665 | 709 | | |
666 | 710 | | |
667 | 711 | | |
| |||
0 commit comments