1 |
I am attempting to switch a number of the absolute paths which are present in |
2 |
my spec files and in my catalyst configuration file into relative paths. |
3 |
|
4 |
For example, I would like to replace an absolute path like this: |
5 |
|
6 |
envscript="/home/tkosan/checkouts/jdos/jdos/catalyst_config_files/catalyst-env.sh" |
7 |
|
8 |
|
9 |
with a relative path like this: |
10 |
|
11 |
envscript="../catalyst_config_files/catalyst-env.sh" |
12 |
|
13 |
|
14 |
I have been studying the python code for catalyst_v2.0_rc50. The file_locate |
15 |
function near line 506 in catalyst_support.py appears to support relative |
16 |
paths, but the following code that calls this function near line 157 in |
17 |
generic_stage_target.py seems to be disabling path expansion by setting |
18 |
"expand" to 0: |
19 |
|
20 |
|
21 |
<code_snip> |
22 |
# this next line checks to make sure that the specified variables exist on |
23 |
disk. |
24 |
#pdb.set_trace() |
25 |
file_locate(self.settings,["source_path","snapshot_path","distdir"],expand=0) |
26 |
|
27 |
# if we are using portage_confdir, check that as well |
28 |
if self.settings.has_key("portage_confdir"): |
29 |
file_locate(self.settings,["portage_confdir"],expand=0) |
30 |
</code_snip> |
31 |
|
32 |
|
33 |
Is there a way to enable the use of relative paths in the spec files and in the |
34 |
catalyst configuration file that perhaps I am not aware of? |
35 |
|
36 |
Thanks in advance :-) |
37 |
|
38 |
Ted Kosan |
39 |
tkosan@××××××××.net |
40 |
-- |
41 |
gentoo-catalyst@g.o mailing list |