[buildd-tools-devel] Bug#657715: copyfiles should create non-existent target directories

Marc Haber mh+debian-packages at zugschlus.de
Sat Jan 28 10:13:10 UTC 2012


Package: schroot
Version: 1.4.24-1
Severity: wishlist

Hi,

when copying a file from a non-standard directory via the copyfiles
mechanism, this does not work:

$ schroot --begin-session --chroot=squeeze_build64 --session=build
E: 20copyfiles: cp: cannot create regular file `/var/lib/schroot/mount/build/etc/apt/apt.keys.input/zg20110.debian.zugschlus.de': No such file or directory
E: build: Chroot setup failed: stage=setup-start

Manually creating /var/lib/schroot/mount/build/etc/apt/apt.keys.input
inside the chroot fixes this issue.

The copyfiles mechanism should create target directories, if necessary.

Btw, just giving the directory /etc/apt/apt.keys.input in a copyfiles
file, this causes the directory with its entire contents to be copied
to the target. I am not sure whether this is the intended behavior. If
so, it should be documented, and copyfiles is kind of a misnomer for
this feature.

Greetings
Marc





More information about the Buildd-tools-devel mailing list