Bug#762715: updates to dch --lts

Antoine Beaupré anarcat at orangeseeds.org
Mon Oct 23 14:33:58 UTC 2017


Control: tags 762715 +patch

On Mon, Oct 31, 2016 at 12:10:37PM -0400, Antoine Beaupré wrote:
> On 2016-10-28 20:10:43, Holger Levsen wrote:
> >> Since this may change again in the future before this issue is resolved,
> >> maybe it's better to just refer to the LTS notes here:
> >> https://wiki.debian.org/LTS/Development#Build_the_update
> >
> > no. "dch --lts" should do the right thing - and just like "dch --bpo" it
> > will be outdated & in need of an update once in a while - each time we
> > release… \o/ yay! :)
> 
> There are probably ways to make it use variables instead of hardcoding
> (say) "wheezy-security"... :)
> 
> I looked at the code and there are around 14 instances of "$opt_s" in
> the code. Either we need to duplicate that or make --lts enable $opt_s
> and customize some bits of it.

I ended up copying the -s option the same way lamby copied the --bpo
option to create --sru in #871657. Not ideal, but at this point it's the
way of the land...

So attached are patches to add a --lts option. I figured I would do
*some* refactoring while I was there to avoid further code duplication.
I haven't tested all scenarios (and the test suite is limited in that
regard) but this mostly works in my tests locally.

A.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-unify-version-information.patch
Type: text/x-diff
Size: 4679 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20171023/1b90506d/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-add-support-for-preparing-uploads-to-LTS.patch
Type: text/x-diff
Size: 9214 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20171023/1b90506d/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20171023/1b90506d/attachment.sig>


More information about the devscripts-devel mailing list