support --directdepsend-- marker
Don't crash on startup if Achive::Tar is not available
refactor a bit
livebuild: Prevent users from configuring archives in lb config

Since the OBS live-build only has access to the configured repositories
(due to the lack of network access) the user shall not configure archives
inside the configuration itself.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
livebuild: create local repository in $BUILD_ROOT/.build.binaries

Instead of creating the repository in $TOPDIR/SOURCES/repos this is
adapting to what mock is doing.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
livebuild: Write system default configuration to /etc/live/build.conf

This reduces the amount of code required in the livebuild_pre_run hook.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
livebuild: Run OBS buildroot livebuild_pre_run hook before user provided one

We should not change the buildroot between the lb config and the lb build
calls. Therefore move the OBS buildroot hook to run first.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
- run mkswap only inside the VM, it can have a different format
Setup environment variables for Arch packages

login shells started with "su -l" behave differently on Arch
(/etc/profile not executed):
https://github.com/openSUSE/open-build-service/issues/713
livebuild: Only process package-lists with the *.list suffix

live-build itself is only processing them when they have the *.list suffix.
Therefore we should do the same thing.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Revert "For livebuild we have (like kiwi) sub-directories with additional packages in the source folder"

This reverts commit 758824d36df2b5103f842bbe4804bdb6b6cc95e8.
livebuild: Remove another left-over when using the repos sub-directory

This is removing another code section that is not required anymore since we
are using the /.build.binaries folder instead.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Merge pull request #117 from e9925248/master

Setup environment variables for Arch packages
livebuild: Introduce build-packages:livebuild Project Configuration variable

This variable can be used to override the list of dependencies that
live-build expects to have available in the buildroot.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Merge pull request #116 from jblunck/livebuild-build-binaries

Requested changes to use /.build.binaries as a repository path
livebuild: Do not substitute while parsing

If the project configuration is changing the source is not parsed again.
Therefore the substitution shall be done in bs_sched and bs_repserver.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
livebuild: Error out if archives are configured

We do not support additional repositories defined in the live-build
configuration so we return an error here.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Merge pull request #118 from jblunck/livebuild-build-binaries

Move substitution away from parsing code and error out when archives (repos) are configured
Add get_sysbuild function, refactor livebuild
remove livebuild special casing