custominstall: fix --seeddb by loading it earlier

This commit is contained in:
Ian Burgwin
2022-04-02 11:28:54 -07:00
parent 8f90387a80
commit 6a5ca17a33

View File

@@ -249,6 +249,9 @@ class CustomInstall:
return reader return reader
def prepare_titles(self, paths: 'List[PathLike]'): def prepare_titles(self, paths: 'List[PathLike]'):
if self.seeddb:
load_seeddb(self.seeddb)
readers = [] readers = []
for path in paths: for path in paths:
self.log(f'Reading {path}') self.log(f'Reading {path}')
@@ -378,9 +381,6 @@ class CustomInstall:
self.log(l) self.log(l)
return None, False, 0 return None, False, 0
if self.seeddb:
load_seeddb(self.seeddb)
install_state = {'installed': [], 'failed': []} install_state = {'installed': [], 'failed': []}
# Now loop through all provided cia files # Now loop through all provided cia files