"Bernhard R. Link" <brl...@debian.org> writes:

> * Daniel Dehennin <daniel.dehen...@baby-gnu.org> [120607 14:58]:
>> My problem is that "${5}" is ./pool/main/[...].changes but in fact, as I
>> configured outdir to be "+b/pub", my script fails.
>
> Is it "./pool/..." or is it "pool/..."?. (I hope the second).

It's "pool/...".

>
>> Is it possible to set some environment variables usable in hooks?
>
> Take a look at the end of the manpage describing
>        REPREPRO_BASE_DIR
>        REPREPRO_CONFIG_DIR
>        REPREPRO_OUT_DIR
>        REPREPRO_DIST_DIR
> Those should all be set in all hook scripts.
> (Though note that those values are not canonicalized, so if
> reprepro is run with a basedir (by default it is "."), those
> values might be relative too, so need canonicalisation before
> changing the directory).

Right, I did an "env >> /tmp/spool.log" and see them:

REPREPRO_BASE_DIR=.
REPREPRO_CONF_DIR=./conf
REPREPRO_LOG_DIR=./conf/logs/
REPREPRO_CAUSING_COMMAND=processincoming
REPREPRO_OUT_DIR=./pub/
REPREPRO_DIST_DIR=./pub//dists


> Anything still missing or any ideas how I can document this better?
> Or can I close this bug?

Maybe listing them in the "Log" directive of "conf/distributions" in the
manpage, like for "ListHook"?

Or a note in the section "ENVIRONMENT VARIABLES" for each one telling where
it's available?

Regards.

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF

Attachment: pgpzdmTBTLgzC.pgp
Description: PGP signature

Reply via email to