Re: [sabayon] new function in storage module to get a path to a file/directory in uncompressed temp profile



On Mon, 2005-06-20 at 17:19 +0100, Mark McLoughlin wrote:
> On Mon, 2005-06-20 at 10:14 +0100, Mark McLoughlin wrote:
> 
> >   4) The copy_tree (foo, bar, "") thing is making me nervous too. 
> 
> 	I just noticed "apps" and "desktop" directories in the home directory
> of a protosession. It looks we're not extracting the GConf tree in ~/
> rather than ~/.gconf. I'd guess that this is the cause.

O.K. just checked a fix into CVS. I added a utility function to util.py
called split_path() that splits a path depending on whether a head or
tail of the path is passed to it. extract now uses that function to
split the path returned by get_extract_src_path() into the storage
directory (head) and the path requested for extracting (tail), these are
then passed to copy_tree(). Also get_extract_src_path() now returns just
a path instead of a tuple.

Testing has been limited, but it seems to work.
-- 
John Dennis <jdennis redhat com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]