From owner-freebsd-hubs Wed Mar 5 14:25:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA15805 for hubs-outgoing; Wed, 5 Mar 1997 14:25:25 -0800 (PST) Received: from passion.doc.ic.ac.uk (passion.doc.ic.ac.uk [146.169.2.24]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA15799 for ; Wed, 5 Mar 1997 14:25:20 -0800 (PST) Received: from triumph.doc.ic.ac.uk [146.169.24.1] by passion.doc.ic.ac.uk with smtp (Exim 0.52 #1) id E0w2P7V-0003bJ-00; Wed, 5 Mar 1997 22:25:09 +0000 Message-ID: <331DF2C5.C6DC9D8@doc.ic.ac.uk> Date: Wed, 05 Mar 1997 22:25:09 +0000 From: Lee McLoughlin Organization: IC-Parc, Imperial College, University of London. U.K. X-Mailer: Mozilla 3.0 (X11; I; SunOS 4.1.3_U1 sun4m) MIME-Version: 1.0 To: Christoph Kukulies CC: freebsd-hubs@freebsd.org Subject: Re: mirror exclude patterns References: <199703052121.WAA01896@gilberto.physik.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hubs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Christoph Kukulies wrote: > > I have a pattern in my mirror.defaults file that should exclude > des and secure directories to be fetched from ftp.freebsd.org > (for crypto export reasons). What happens is that also > files containing the pattern des (like tdesk) aand sup-secure > are excluded from the fetch which isn't what I want. > > exclude_patt=des|eBones|secure|ls-lR.gz > > is the line I currently have. Try something more like: exclude_patt=(^|/)(des|eBones|secure|ls-lR.gz) The (^|/) will match a start of filename or a '/' and the $ will match end of filename. So the exclude_patt will now match: des whatever/dir/eBones But not: tdesk somewhere/sup-secure/filename -- Lee McLoughlin. Phone: +44 171 594 8388 IC-Parc, Imperial College, Fax: +44 171 594 8432 South Kensington, London. SW7 2BZ. UK. Email: L.McLoughlin@doc.ic.ac.uk