bug-stow
[Top][All Lists]
Advanced

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

Re: [Bug-stow] very long runtime with 'stow -D pkgname'


From: Gaël Roualland
Subject: Re: [Bug-stow] very long runtime with 'stow -D pkgname'
Date: Fri, 13 Sep 2002 15:36:26 +0200

Laurent Besson a écrit :
> I have tried to use the '-D' option of stow. It works but this is really
> slow. Let me explain why:

This is a know problem, with an alternative planned... some day.

> I'm in a Sun working environment and I have no 'root' permission. So I install
> every package I want to use in $HOME/stow and my target dir is $HOME.
> 
> I also have a lot of data (and thus of directories) in my $HOME.
> 
> When I run 'stow --verbose=3 -D some_package', I see that it is exploring
> all the $HOME hierarchy, including places no stow program are stored.
> 
> I was wondering why does stow explores all my 'target dir' (i.e. $HOME) to
> remove my package ?

Actually, stows looks in the whole target dir for files linking to the
package you're unstowing, so it can detect when a directory is left with
only links to another package after removing some links, and change that
directory to a link to the package's directory. It can alos remove empty
directories left by removing links.

> Why doesn't it explore the 'package' hierachy and removing the appropriate
> links in the 'target' dir ? I think this would much much faster.

That's the alternative, "fast" unstowing that we plan on adding. But
with this behavior you can leave empty directories and directories full
of links to a single package, since you can't detect them. If you feel
like coding it, you're welcome :)

Gaël.

-- 
Gaël Roualland -+- address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]