Re: pkg_create broken?

[ Available lists | Index of freebsd-hackers | Month of Jun 2003 | Week of 26 Jun 2003 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Julian Elischer <julian@elischer.org>
Date
26 Jun 2003 08:37:44
Subject
Re: pkg_create broken?
Message-ID
Pine.BSF.4.21.0306260836020.2537-100000@InterJet.elischer.org

In reply to

[ Hide this part ]
 

On Thu, 26 Jun 2003, Dwayne MacKinnon wrote:

> Julian Elischer wrote:
> > Alternatively, the man page hints that
> > a 'srcdir' would stop a following 'cwd' from having effect in the create
> > phase.
>
> Just wanted to mention that order is extremely important with package
> creation. If you have @cwd /foo/bar; @srcdir /bar/foo your files will be
> picked up from /bar/foo. If you have @srcdir /bar/foo; @cwd /foo/bar
> your files will be picked up from /foo/bar. @cwd changes the directory
> pointer for both creation and extraction, and so if you have @cwd AFTER
> @srcdir the @srcdir command effectively gets over-written.

yes but if you have a @cwd followed by an @srcdir then tar gets told
to chdir to both places and it quits with an error
if the first one doesn't exist, even if it need not exist.



>
> An experiment using just @srcdir and @dstdir might be worthwhile...
>
> Cheers,
> DMK
>
>


Elapsed time: 0.138 seconds