Hi Jean Charles,

Jean Charles Delepine wrote (18 Sep 2012 10:17:46 GMT) :
> metche 1.2.2 choose to not printing $WATCHED_DIR if it is in the
> search answer. Good point for me. My problem is out : /etc/blkid.tab
> still changes /etc every 20mn but /etc changes are ignored.
> My /var/lib/metche will not be full anymore. \o/

I'm happy to read this :)

>> > A solution might be to only search for files, not directories
>> > (works here):
>> 
>> Thanks a lot for this suggestion.
>> 
>> Can you please try to reproduce the problem you were experiencing
>> with an unpatched metche 1.2.2-1 (currently in Debian
>> testing/unstable, installable as-is in Squeeze) and report back if
>> you can still reproduce it?

> I can't reproduce it for $WATCHED_DIR, but any file edited and not
> saved in $WATCHED_DIR/bla/ will change $WATCHED_DIR/bla/ date and
> one unstable will be saved. : [...]

OK, fair enough.

>> If you can, then I'll happily consider applying your patch :)

OK, so I'm considering applying it :)

... but I'm afraid this patch might prevent metche from detecting
deleted files in the watched directory. Does it?

> If you consider applying it you should take the patch attached for
> 1.2.2:  in order to have testing and stable tarballs the test -cmin
> "-$time" has also to be modified.

Makes sense.

> -    if [ -z "$(find $(print_watched_files) $FIND_OPTS -cmin "-$time" -print 
> | head -1)" ]; then
> +    if [ -z "$(find $(print_watched_files) -type f '(' $FIND_OPTS -cmin 
> "-$time" -print ')' | head -1)" ]; then

No "-a" needed here between "-type f" and '('?

> If -type f is used there's no more needs of -path $WATCHED_DIR in
> $FIND_OPTS but the patch will be biggest.

I'd be happy to consider it too: this is not RC, Wheezy is frozen, so
we have plenty of time to improve metche for Jessie!

Cheers!
--
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to