Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-02-02 14:22:52 +0100
committerGitHub <noreply@github.com>2022-02-02 14:22:52 +0100
commitc08520f9902aeb1b4ce22e1159060792081b0327 (patch)
tree934ac279ac0e6d675b409d7936c97ce73d721a6a /archinstall/__init__.py
parentdfd064a57f6a0006e9fc614ea229fd9883722085 (diff)
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
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py17
1 files changed, 16 insertions, 1 deletions
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 *