You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The chkstow --list command only works when the stow directory is called 'stow'. This is mentioned in a "FIXME" comment in the current version of the source code.
# FIXME: what if the stow dir is not called 'stow'?
Wouldn't the right thing here would be to add a --dir argument to chkstow? Then you could 're-root' all the relative symlinks into absolute links and grep through all of them keeping only those with shared roots leading to the package being checked (excluding subtrees under those containing .stow files of course). I'm very interested in this as I would like to use Stow to manage scientific data not software installs. However, it's been about 7 years since I last programmed perl and it's clear I've forgotten just about everything.
Originally reported here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806915
Summary
The
chkstow --list
command only works when the stow directory is called 'stow'. This is mentioned in a "FIXME" comment in the current version of the source code.http://git.savannah.gnu.org/cgit/stow.git/tree/bin/chkstow.in?id=cc0767597e5f9e23400323b42550e4672160b3c0#n97
Below is a shell script to reproduce the behavior. The
chkstow
invocation outputs onlywhen it should output
Suggested fix: let the
chkstow
command take a--dir
flag likestow
does.Shell script
Explanation:
There are two files, one in
stow/
and one instow2/
, like this:which produces a target like this:
But
chkstow
only recognizes the symlink pointing tostow/
, not the one pointing tostow2/
as well:The text was updated successfully, but these errors were encountered: