public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] Relative paths in spec files
@ 2006-08-07 22:58 Ted Kosan
  2006-08-07 23:09 ` Andrew Gaffney
  0 siblings, 1 reply; 6+ messages in thread
From: Ted Kosan @ 2006-08-07 22:58 UTC (permalink / raw
  To: gentoo-catalyst

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
tkosan@dev.java.net
-- 
gentoo-catalyst@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-10 23:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-07 22:58 [gentoo-catalyst] Relative paths in spec files Ted Kosan
2006-08-07 23:09 ` Andrew Gaffney
2006-08-09  6:07   ` Ted Kosan
2006-08-09  7:39     ` "Andreas Rückert"
2006-08-10 18:11       ` Ted Kosan
2007-06-10 23:25   ` [gentoo-catalyst] " Charles Duffy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox