Merge lp:~wgrant/bzr-builder/bug-1350430 into lp:bzr-builder

Proposed by William Grant
Status: Merged
Merged at revision: 173
Proposed branch: lp:~wgrant/bzr-builder/bug-1350430
Merge into: lp:bzr-builder
Diff against target: 55 lines (+8/-6)
2 files modified
deb_version.py (+3/-3)
tests/test_blackbox.py (+5/-3)
To merge this branch: bzr merge lp:~wgrant/bzr-builder/bug-1350430
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
bzr-builder developers Pending
Review via email: mp+229760@code.launchpad.net

Commit message

debversion and debupstream-base were used extensively in format 0.3 recipes, so revert the change in 0.7.3 that forbade them before 0.4.

Description of the change

debversion and debupstream-base were used extensively in format 0.3 recipes on Launchpad, so revert the change in 0.7.3 that forbade them before 0.4. There were also a few uses of debupstream-base in 0.2, but probably not enough to worry about.

I also fixed test_blackbox to pass on utopic.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Wed, Aug 06, 2014 at 10:30:35AM -0000, William Grant wrote:
> William Grant has proposed merging lp:~wgrant/bzr-builder/bug-1350430 into lp:bzr-builder.
>
> Commit message:
> debversion and debupstream-base were used extensively in format 0.3 recipes, so revert the change in 0.7.3 that forbade them before 0.4.
>
> Requested reviews:
> bzr-builder developers (bzr-builder-devs)
> Related bugs:
> Bug #1350430 in bzr-builder: "{debupstream} {debversion} not recognised by format 0.4"
> https://bugs.launchpad.net/bzr-builder/+bug/1350430
>
> For more details, see:
> https://code.launchpad.net/~wgrant/bzr-builder/bug-1350430/+merge/229760
>
> debversion and debupstream-base were used extensively in format 0.3 recipes on Launchpad, so revert the change in 0.7.3 that forbade them before 0.4. There were also a few uses of debupstream-base in 0.2, but probably not enough to worry about.
>
> I also fixed test_blackbox to pass on utopic.

Looks good to me, but I'm pretty sure I don't have any sort of official
powers to approve this. :)

Jelmer

Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'deb_version.py'
--- deb_version.py 2012-03-25 12:19:46 +0000
+++ deb_version.py 2014-08-06 10:29:41 +0000
@@ -69,7 +69,7 @@
6969
70 basename = "debversion"70 basename = "debversion"
7171
72 minimum_format = 0.472 minimum_format = 0.3
7373
74 def __init__(self, branch_name, version):74 def __init__(self, branch_name, version):
75 super(DebVersionVariable, self).__init__(branch_name)75 super(DebVersionVariable, self).__init__(branch_name)
@@ -102,7 +102,7 @@
102class DebUpstreamBaseVariable(DebUpstreamVariable):102class DebUpstreamBaseVariable(DebUpstreamVariable):
103103
104 basename = "debupstream-base"104 basename = "debupstream-base"
105 minimum_format = 0.4105 minimum_format = 0.3
106106
107 def get(self):107 def get(self):
108 version = super(DebUpstreamBaseVariable, self).get()108 version = super(DebUpstreamBaseVariable, self).get()
@@ -193,7 +193,7 @@
193 from bzrlib.plugins.builder.deb_version import DebUpstreamVariable, DebUpstreamBaseVariable, DebVersionVariable193 from bzrlib.plugins.builder.deb_version import DebUpstreamVariable, DebUpstreamBaseVariable, DebVersionVariable
194 debupstream_var = DebUpstreamVariable.from_changelog(branch_name, changelog)194 debupstream_var = DebUpstreamVariable.from_changelog(branch_name, changelog)
195 base_branch.deb_version = debupstream_var.replace(base_branch.deb_version)195 base_branch.deb_version = debupstream_var.replace(base_branch.deb_version)
196 if base_branch.format < 0.4:196 if base_branch.format < 0.3:
197 # The other variables were introduced in recipe format 0.4197 # The other variables were introduced in recipe format 0.4
198 return198 return
199 debupstreambase_var = DebUpstreamBaseVariable.from_changelog(199 debupstreambase_var = DebUpstreamBaseVariable.from_changelog(
200200
=== modified file 'tests/test_blackbox.py'
--- tests/test_blackbox.py 2011-12-11 02:22:58 +0000
+++ tests/test_blackbox.py 2014-08-06 10:29:41 +0000
@@ -381,7 +381,7 @@
381 def test_cmd_dailydeb_with_version_from_changelog(self):381 def test_cmd_dailydeb_with_version_from_changelog(self):
382 self.requireFeature(NotUnderFakeRootFeature)382 self.requireFeature(NotUnderFakeRootFeature)
383 self.make_simple_package("source")383 self.make_simple_package("source")
384 self.build_tree_contents([("test.recipe", "# bzr-builder format 0.4 "384 self.build_tree_contents([("test.recipe", "# bzr-builder format 0.3 "
385 "deb-version {debversion}-2\nsource 1\n")])385 "deb-version {debversion}-2\nsource 1\n")])
386 out, err = self.run_bzr(386 out, err = self.run_bzr(
387 "dailydeb --allow-fallback-to-native -q test.recipe working")387 "dailydeb --allow-fallback-to-native -q test.recipe working")
@@ -485,8 +485,10 @@
485 source = self.make_simple_package("source")485 source = self.make_simple_package("source")
486 self.build_tree(["source/debian/source/"])486 self.build_tree(["source/debian/source/"])
487 self.build_tree_contents([487 self.build_tree_contents([
488 ("source/debian/source/format", "3.0 (quilt)\n")])488 ("source/debian/source/format", "3.0 (quilt)\n"),
489 source.add(["debian/source", "debian/source/format"])489 ("source/debian/source/options", 'compression = "gzip"\n')])
490 source.add([
491 "debian/source", "debian/source/format", "debian/source/options"])
490 source.commit("set source format")492 source.commit("set source format")
491 return source493 return source
492494

Subscribers

People subscribed via source and target branches