I am attempting to switch a number of the absolute paths which are present in
my spec files and in my catalyst configuration file into relative paths.  

For example, I would like to replace an absolute path like this:

envscript="/home/tkosan/checkouts/jdos/jdos/catalyst_config_files/catalyst-env.sh"


with a relative path like this:

envscript="../catalyst_config_files/catalyst-env.sh"


I have been studying the python code for catalyst_v2.0_rc50.  The file_locate
function near line 506 in catalyst_support.py appears to support relative
paths, but the following code that calls this function near line 157 in
generic_stage_target.py seems to be disabling path expansion by setting
"expand" to 0:


<code_snip>
# this next line checks to make sure that the specified variables exist on
disk.
#pdb.set_trace()
                
file_locate(self.settings,["source_path","snapshot_path","distdir"],expand=0)

# if we are using portage_confdir, check that as well
if self.settings.has_key("portage_confdir"):
                        file_locate(self.settings,["portage_confdir"],expand=0)
</code_snip>


Is there a way to enable the use of relative paths in the spec files and in the
catalyst configuration file that perhaps I am not aware of?

Thanks in advance :-)

Ted Kosan
[EMAIL PROTECTED]
-- 
[EMAIL PROTECTED] mailing list

Reply via email to