Skip to content

Commit ef0a570

Browse files
committed
fix DowngradingError not raised
because _G.repo.name no longer available in worker
1 parent 5c21f91 commit ef0a570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lilac2/pkgbuild.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ def load_data(dbpath: Path) -> None:
101101
_official_groups.update(
102102
_load_timed_dict(dbpath / 'groups.txt', deadline))
103103

104-
if hasattr(_G, 'repo'):
104+
if hasattr(_G, 'reponame'):
105105
H = pyalpm.Handle('/', str(dbpath))
106-
db = H.register_syncdb(_G.repo.name, 0)
106+
db = H.register_syncdb(_G.reponame, 0)
107107
_repo_package_versions = {p.name: p.version for p in db.pkgcache}
108108

109109
def check_srcinfo() -> PkgVers:

0 commit comments

Comments
 (0)