[buildd-tools-devel] Bug#657711: Bug#657711: please make COPYFILES more flexible

Roger Leigh rleigh at codelibre.net
Sat Jan 28 10:39:20 UTC 2012


On Sat, Jan 28, 2012 at 09:26:03AM +0100, Marc Haber wrote:
> To solve this, I would like schroot to copy a file from
> /etc/schroot/foo/files/etc/apt/apt.conf.d/70RecommendsSuggests to
> /etc/apt/apt.conf.d/70RecommendsSuggests in the schroot.
> 
> To allow this, the COPYFILES functionality could be changed to allow
> two file names per line. If only one is given, behavior is not
> changed, preserving backwards-compatibility. If two are given, one is
> the source path from the host system, one is the target path inside
> the chroot.

This should be fairly straightforward to add.  The only issue is how
to deal with paths/files containing spaces in their names.  Currently
we read the entire line and use the entire content as the path, which
includes any spaces.  Having two per line means we would need some
way of splitting the line.  If we can use some shell-fu to allow
correct escaping of spaces so that we can split on whitespace, that
would be good.

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.





More information about the Buildd-tools-devel mailing list