KIWILocator Info


Public methods

Private methods


_new_instance

Create the Locator object

Defined on line: 390

createTmpDirectory

Missing

Defined on line: 47

Called in

getControlFile

Return a fully qualified path for the boot image description. - If the given string argument starts with / verify that a control file can be found within - If a relative path is given search in ~ the current working directory ~ the directory given as second argument ~ the kiwi default path returns the first match found --- my $this = shift; my $bootImgPath = shift; my $addlSearchDir = shift; my $kiwi = $this->{kiwi}; if (! $bootImgPath) { my $msg = 'KIWILocator:getBootImageDescription called without ' . 'boot image to look for. Internal error, please file a bug.'; $kiwi -> error ($msg); $kiwi -> failed(); return; } Check if we received an absolute path my $firstC = substr $bootImgPath, 0 , 1; if ($firstC eq '/') { if (! -d $bootImgPath) { my $msg = "Could not find given directory '$bootImgPath'."; $kiwi -> error ($msg); $kiwi -> failed(); return; } my $config = $this -> getControlFile($bootImgPath); if (! $config) { my $msg = "Given boot image description '$bootImgPath' does " . 'not contain configuration file.'; $kiwi -> error ($msg); $kiwi -> failed(); return; } return $bootImgPath; } Look in the current working directory my $cwd = getcwd(); $cwd .= '/'; my $potBootImgPath = $cwd . $bootImgPath; if ( -d $potBootImgPath) { my $config = $this -> getControlFile($potBootImgPath); if ($config) { return $potBootImgPath; } } Look in the additional search directory if ($addlSearchDir) { my $absSearchDir = abs_path($addlSearchDir); if ( -d $absSearchDir) { $absSearchDir .= '/'; my $probBootImgPath = $absSearchDir . $bootImgPath; if ( -d $probBootImgPath) { my $config = $this -> getControlFile($probBootImgPath); if ($config) { return $probBootImgPath; } } } } Look in the default location my $global = KIWIGlobals -> instance(); my %confData = %{$global -> getKiwiConfig()}; my $sysBootImgPath = $confData{System}; $sysBootImgPath .= '/'; my $kiwiBootImgDescript = $sysBootImgPath . $bootImgPath; if ( -d $kiwiBootImgDescript) { my $config = $this -> getControlFile($kiwiBootImgDescript); if ($config) { return $kiwiBootImgDescript } } my $msg = 'Could not find valid boot image description for' . "'$bootImgPath'."; $kiwi -> error($msg); $kiwi -> failed(); return (); } ========================================== getControlFile ------------------------------------------ This function receives a directory as parameter and searches for a kiwi xml description in it.

Defined on line: 202

Called in

getDefaultCacheDir

Return the path of the default cache directory Kiwi uses

Defined on line: 256

Called in

getExecArgsFormat

Return a hash ref of the argument format for the sought after arguments. The method handles long arguments and deals with difference in version where arguments may have changed from -argument to --argument

Defined on line: 267

Called in

getExecPath

Return the full path of the given executable

Defined on line: 346

Called in

instance

Missing documentation

Defined on line: Unknown

Called in