control: tags -1 moreinfo

On Wed, Apr 17, 2013 at 06:18:27PM +0200, Sylvestre Ledru wrote:
> It would be nice if you could provide a way to copy files out of the chroot.
> 
> For example, I am using pbuilder to build the packages and launch some
> QA operations (code coverage, static analysis, etc) at the end.
> I would like to retrieve these files.

pbuilder already has support for that, it's called
ADDITIONAL_BUILDRESULTS:

    for FILE in "${ADDITIONAL_BUILDRESULTS[@]}"; do
        log "I: Trying to save additional result ${FILE}"
        cp -a "${BUILDPLACE}$BUILDDIR/"*"/${FILE}" "${BUILDRESULT}" || true
    done

It's the second last entry in pbuilderrc(5) :)

As you can see that cp command looks a bit weird, indeed it copies
the file you list from the built tree ('debian/..' to be clear).
I don't use such feature, but guess you can make use of it? :)

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature

Reply via email to