kdist__cd_repository() exits if something goes wrong

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config--import: make use of kdist__get_repository()

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config-import: no need to call kdist__get_repository() to check the presence of the config module

This is already handled by calls to kdist__cd_repository().

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config-import: be more strict about the name specification

The name/flavour can be specified by 2 different ways: either by the
passed argument or by the one contained in .config file.

Be sure that both methods agree when used.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Introduce config__set_flavour()

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config__append_symbol(): caller must pass the quotes when appending to a string value

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config-import: set the config flavour in the imported config file if not set

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config-install: cosmetic changes only

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config__ls_files(): force any tracked config files to have an associated info file

I'm not sure about the previous comment since config info are always
present for any tracked config files.

Morevover 'import' command doesn't use this path except when the
config file already exists (error case) and that doesn't hurt to check
the presence of the info file in that case.

Therefore this patch forces the function to always read the info file.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config__ls_file(): add one more sanity check on the config name consistency

name given by the info file and embedded in the config
file must always match to avoir any later suprises.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config__ls_file(): earn one indentation level

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
config__ls_file(): if failing then terminate kdist

This function should terminate kdist since a failure means a corrupted
config DB.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
rpm-spec: untar the kernel source archive in %prep

%prep section is used to install the package archive in the BUILD/
directory.  Some tools may depend on it, specially the ones used to
check the package content quality.

So install the source code in BUILD/ and copy it again in BUILDROOT/.

I tried to use a symlink in BUILDROOT/ to BUILD/ but rpm(1) somehow
modified this symlink and broke it.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>