Commit cddae3b
committed
Updates to TargetFile.get_prefixed_paths()
* Use the same solution for producing the paths as we already do in ngclient
* Fix linting issues
* Modify the test results according to new code (I believe these are
correct, although some cases are so edge cases that disagreement may
exist. Most importantly I think the method should always return as
many paths as there are hashes listed
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>1 parent 0eef15a commit cddae3b
2 files changed
Lines changed: 22 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
729 | | - | |
730 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
731 | 732 | | |
732 | | - | |
733 | 733 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
| 734 | + | |
| 735 | + | |
738 | 736 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
| 737 | + | |
| 738 | + | |
743 | 739 | | |
744 | | - | |
745 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
746 | 743 | | |
747 | | - | |
748 | 744 | | |
749 | | - | |
750 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
751 | 748 | | |
752 | | - | |
753 | 749 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
| 750 | + | |
| 751 | + | |
758 | 752 | | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
| 753 | + | |
| 754 | + | |
763 | 755 | | |
764 | 756 | | |
765 | 757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
1740 | 1739 | | |
1741 | 1740 | | |
1742 | 1741 | | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
| 1742 | + | |
1746 | 1743 | | |
1747 | 1744 | | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
1755 | | - | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
1759 | 1748 | | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | 1749 | | |
1766 | 1750 | | |
1767 | 1751 | | |
| |||
0 commit comments