[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-stow] [Patch] Option to exclude files for stow/unstow.
From: |
Cedric Ware |
Subject: |
Re: [Bug-stow] [Patch] Option to exclude files for stow/unstow. |
Date: |
Wed, 17 Jul 2002 01:18:53 +0200 |
User-agent: |
Mutt/1.3.28i |
> > but translates globbing patterns into
> > regular expressions. Both syntaxes are accepted, see the manpage
> > for details.
>
> Okay... This is quite powerful, but also quite complicated for most
> users I think... I don't know if such flexibility is needed or not.
If not, one can just remove the "if (m,^/.*/$,)" on line 162; all
patterns will be globbing patterns.
> I just had a fast look but I guess only the Exclude_paths case is not
> working ?
Neither Exclude nor Exclude_paths work. That's what killed me, I'd have
thought the former was simple enough. But there, see the test case below
(and note that it says it will OMIT the file then proceeds to UNLINK it
anyway...)
> Maybe you should apply it on JoinPaths($dir, $content) instead
> of $stowmember ?
I think this wouldn't work for "anchored paths", relative to $Stow.
> I'll have a deeper look on the whole patch as time permits...
Thank you.
Good night,
Cedric Ware.
Test case:
krakatoa /tmp/ts/stow % ls -lRF
.:
total 2
drwxr-xr-x 3 ware wheel 512 Jul 17 01:09 a/
drwxr-xr-x 3 ware wheel 512 Jul 17 01:09 b/
a:
total 1
drwxr-xr-x 2 ware wheel 512 Jul 17 01:09 1/
a/1:
total 0
-rw-r--r-- 1 ware wheel 0 Jul 17 01:00 a1
-rw-r--r-- 1 ware wheel 0 Jul 17 01:00 a2
b:
total 1
drwxr-xr-x 2 ware wheel 512 Jul 17 01:09 1/
b/1:
total 0
-rw-r--r-- 1 ware wheel 0 Jul 17 01:01 b1
-rw-r--r-- 1 ware wheel 0 Jul 17 01:01 b2
krakatoa /tmp/ts/stow % perl /tmp/stow -v a b
Stowing package a...
LINK /tmp/ts/1 to stow/a/1
Stowing package b...
UNLINK /tmp/ts/1
MKDIR /tmp/ts/1
LINK /tmp/ts/1/a1 to ../stow/a/1/a1
LINK /tmp/ts/1/a2 to ../stow/a/1/a2
LINK /tmp/ts/1/b1 to ../stow/b/1/b1
LINK /tmp/ts/1/b2 to ../stow/b/1/b2
krakatoa /tmp/ts/stow % perl /tmp/stow -Dv -e '?2' a
UNLINK /tmp/ts/1/a1
OMIT a2
OMIT b2
UNLINK /tmp/ts/1/a2
UNLINK /tmp/ts/1/b1
UNLINK /tmp/ts/1/b2
RMDIR /tmp/ts/1
LINK /tmp/ts/1 to stow/b/1