Ryan Cui has posted comments on this change.
Change subject: Ensure prebuilts are actually de-duplicated.
......................................................................
Patch Set 1: (3 inline comments)
....................................................
File lib/binpkg.py
Line 65: oldpkg = db.get(sha1, _Package(0, None))
Why is this necessary? Are there duplicate entries in self.packages?
....................................................
File lib/gs.py
Line 25: def CanonicalizeURL(url):
What do you think about using the NormalizeGSPath function I have here?
https://gerrit.chromium.org/gerrit/#/c/36020/10/lib/commandline.py
....................................................
File scripts/upload_prebuilts_unittest.py
Line 143: def testNormalIndex(self):
These tests don't identify the bug that this CL is fixing. Perhaps add a regression test for the case of different URI prefixes?