Guido Günther <a...@sigxcpu.org> writes: > Hi Daniel,
Hi, >> + # Permit to change the distribution when ever we want >> + if options.distribution: >> + gbp.log.debug("Change distribution from {0} to >> {1}".format(cp['Distribution'], >> + >> options.distribution)) > > This doesn't match the string formatting we usually like format % (a, > b). Any reason for doing this differently here? No, I'm just not a python addict and read that format % (a,b) is the old way, I'll change it to fit the coding standard of git-dch. > >> + del(cp['Distribution']) > Is this necessary? Yes, just "cp['Distribution'] = options.distribution" provides two Distributions lines and the first one (i.e. the old one) is used. > >> + cp['Distribution'] = options.distribution > > > >> + else: >> + options.distribution = "UNRELEASED" > Shouldn't the be handled via the options.distribution default falue? No, we don't want to mess up with the line 427: #+begin_src python elif cp['Distribution'] != "UNRELEASED" and not found_snapshot_header and commits: #+end_src We must not overwrite the 'Distribution' from the changelog file at that point, so I do it later. But as noted in the mail I just sent before reading your answer, I introduce a regression and will provide a function to apply all the options in one place. > > Could you also rediff against the experimental branch please. The > sources got moved around quiet a bit so the patch wouldn't apply. Ok, in progress. -- Daniel Dehennin Récupérer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
pgpD6Gzo8Nzky.pgp
Description: PGP signature