Skip to content

Commit 6fdb47a

Browse files
committed
rpkgs: don't let packages in other "Path"s override
1 parent 8d47358 commit 6fdb47a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nvchecker_source/rpkgs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ async def get_versions(repo: str) -> Dict[str, Tuple[str, str]]:
4040
md5 = line[MD5_FLEN:].decode('utf8')
4141
if pkg is None or ver is None or md5 is None:
4242
raise GetVersionError('Invalid package data', pkg = pkg, ver = ver, md5 = md5)
43-
result[pkg] = (ver, md5)
43+
if pkg not in result: # don't let packages in other "Path"s override
44+
result[pkg] = (ver, md5)
4445

4546
return result
4647

0 commit comments

Comments
 (0)