Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't import pyalpm globally so that lilac can be easily on non-Arch systems (e.g., Travis CI) #144

Merged
merged 1 commit into from
Apr 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lilac2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import io

import requests
import pyalpm

from myutils import at_dir
from htmlutils import parse_document_from_requests
Expand Down Expand Up @@ -407,6 +406,10 @@ def git_rm_files(files: List[str]) -> None:
def aur_pre_build(
name: Optional[str] = None, *, do_vcs_update: Optional[bool] = None,
) -> None:
# import pyalpm here so that lilac can be easily used on non-Arch
# systems (e.g. Travis CI)
import pyalpm

if os.path.exists('PKGBUILD'):
pkgver, pkgrel = get_pkgver_and_pkgrel()
else:
Expand Down