Bug#711356: debchange: Allow config overrides in environment

Loïc Minier loic.minier at dooz.org
Thu Jun 6 14:16:28 UTC 2013


Package: devscripts
Version: 2.13.2
Severity: wishlist
File: /usr/bin/dch
Tags: patch

        Hi there!

It would be nice if dch configs could be overriden from the environment
as per attached patch.  This would likely be useful in more than my
specfic use case, but here's why I'd like this feature: I work on
Debian, Linaro and Ubuntu packages with Debian, Ubuntu, Linaro and other
hats and from various environments.  I have my shell config to set my
git/bzr/dch name and email address as follow:
    alias debian='EMAIL="lool-nospam-debian.org" BZR_EMAIL="Loïc Minier <$EMAIL>"'
    alias linaro='EMAIL="loic.minier-nospam-linaro.org" BZR_EMAIL="Loïc Minier <$EMAIL>"'
    alias ubuntu='EMAIL="loic.minier-nospam-ubuntu.com" BZR_EMAIL="Loïc Minier <$EMAIL>"'
    export NAME="Loïc Minier"
    export EMAIL="lool-nospam-dooz.org"

(inserted nospam in place of @)

This alllows me to work with my Debian hat by prefixing commands with
debian:
    debian dch -a
    debian debcommit

or to switch my shell config to my Linaro hat with:
    linaro
    dch -a
    debcommit
etc.

I'd like to do the same with the DEBCHANGE_VENDOR which is used for
version number heuristics, but currently devscripts only read from
command-line or config files; hence the attached patch to read from the
environment.

    Cheers,
-- 
Loïc Minier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debchange-Allow-config-overrides-in-environment.patch
Type: text/x-diff
Size: 918 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20130606/1ac5518f/attachment.patch>


More information about the devscripts-devel mailing list