mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-04 22:37:49 +00:00
Prevent incorrect repo
This commit is contained in:
parent
9614ec4c6a
commit
ae76ae4025
@ -92,10 +92,12 @@ public class ModuleHelper {
|
|||||||
Repo repo = cached.get(id);
|
Repo repo = cached.get(id);
|
||||||
if (repo == null) {
|
if (repo == null) {
|
||||||
Logger.dev("ModuleHelper: Create new repo " + id);
|
Logger.dev("ModuleHelper: Create new repo " + id);
|
||||||
repoMap.put(id, new Repo(context, name, updatedDate));
|
repo = new Repo(context, name, updatedDate);
|
||||||
} else {
|
} else {
|
||||||
Logger.dev("ModuleHelper: Cached repo " + id);
|
Logger.dev("ModuleHelper: Cached repo " + id);
|
||||||
repo.update(updatedDate);
|
repo.update(updatedDate);
|
||||||
|
}
|
||||||
|
if (repo.getId() != null) {
|
||||||
repoMap.put(id, repo);
|
repoMap.put(id, repo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user