from i18n import _
class Pakfire(object):
- def __init__(self, builder=False, configs=[], enable_repos=None,
- disable_repos=None, distro_config=None):
+ def __init__(self, path="/", builder=False, configs=[],
+ enable_repos=None, disable_repos=None,
+ distro_config=None):
# Check if we are operating as the root user.
self.check_root_user()
self.path = os.path.join(BUILD_ROOT, util.random_string())
else:
self.builder = False
- self.path = "/"
+ self.path = path
# XXX check if we are actually running on an ipfire system.
@property
def pakfire_args(self):
- return {}
+ return {
+ "path" : self.args.instroot,
+ }
def parse_common_arguments(self):
self.parser.add_argument("-v", "--verbose", action="store_true",