From c08520f9902aeb1b4ce22e1159060792081b0327 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 2 Feb 2022 14:22:52 +0100 Subject: SysCommand() to remove ANSII VT100 Esc codes & archlinux-keyring fix (#933) * Fixed SysCommandWorker() so that it removes ANSII VT100 escape codes. I also moved package.py into it's own folder, as that's something I want to expand on a lot, so package related stuff should go in there. I created a installed_package() function which gets information about the locally installed package. I changed so that find_packages() and find_package() returns a data-model instead for the package information. This should unify and make sure we detect issues down the line. * Working on structuring .version constructor that works with BaseModel * Added version contructors to VersionDef(). Also added __eq__ and __lt__ to LocalPackage() and PackageSearchResult(). * removed debug and added a TODO * Removed whitespace * Removed mirror-database function from myrepo --- archinstall/__init__.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'archinstall/__init__.py') diff --git a/archinstall/__init__.py b/archinstall/__init__.py index 12d6887b..1bae70c9 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -14,7 +14,22 @@ from .lib.luks import * from .lib.mirrors import * from .lib.networking import * from .lib.output import * -from .lib.packages import * +from .lib.models import ( + VersionDef, + PackageSearchResult, + PackageSearch, + LocalPackage +) +from .lib.packages.packages import ( + find_group, + package_search, + IsGroup, + find_package, + download_package, + find_packages, + installed_package, + validate_package_list +) from .lib.profiles import * from .lib.services import * from .lib.storage import * -- cgit v1.2.3-70-g09d2