bootstrap-vz/base/bootstrapinfo.py
Anders Ingemann 1c93094833 Integrated package plugin with base system
New phase introduced "package installation" (fixes #114)
Apt source lines are now parsed, this allows to verify the target release of added packages.
All packages (except locales) are now installed *after* bootstrapping (fixes #123)
Added env argument to log_(check_)call
HostDependencies have been refactored a little
2013-12-29 20:58:06 +01:00

26 lines
729 B
Python

class BootstrapInformation(object):
def __init__(self, manifest=None, debug=False):
self.manifest = manifest
self.debug = debug
import random
self.run_id = '{id:08x}'.format(id=random.randrange(16 ** 8))
import os.path
self.workspace = os.path.join(manifest.bootstrapper['workspace'], self.run_id)
from fs import load_volume
self.volume = load_volume(self.manifest.volume)
from pkg.source import SourceLists
self.source_lists = SourceLists(self.manifest)
from pkg.package import PackageList
self.packages = PackageList(self.source_lists, self.manifest)
self.include_packages = set()
self.exclude_packages = set()
self.host_dependencies = set()
self.initd = {'install': {}, 'disable': []}