mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-10-31 05:54:03 +00:00 
			
		
		
		
	backportpackage: Add -c, --close flag to include a changelog closer.
This commit is contained in:
		
							parent
							
								
									b8a2ca9e5a
								
							
						
					
					
						commit
						fdbf495f15
					
				| @ -102,6 +102,9 @@ def parse(args): | |||||||
|                       action='store_true', |                       action='store_true', | ||||||
|                       help='Target the release pocket in the .changes file. ' |                       help='Target the release pocket in the .changes file. ' | ||||||
|                            'Necessary (and default) for uploads to PPAs') |                            'Necessary (and default) for uploads to PPAs') | ||||||
|  |     parser.add_option('-c', '--close', | ||||||
|  |                       metavar='BUG', | ||||||
|  |                       help='Bug to close in the changelog entry.') | ||||||
|     parser.add_option('-m', '--mirror', |     parser.add_option('-m', '--mirror', | ||||||
|                       metavar='INSTANCE', |                       metavar='INSTANCE', | ||||||
|                       help='Preferred mirror (default: Launchpad)') |                       help='Preferred mirror (default: Launchpad)') | ||||||
| @ -232,8 +235,8 @@ def do_upload(workdir, package, bp_version, changes, upload, prompt): | |||||||
| 
 | 
 | ||||||
|     check_call(['dput', upload, changes], cwd=workdir) |     check_call(['dput', upload, changes], cwd=workdir) | ||||||
| 
 | 
 | ||||||
| def do_backport(workdir, pkg, suffix, release, release_pocket, build, builder, | def do_backport(workdir, pkg, suffix, close, release, release_pocket, build, | ||||||
|                 update, upload, prompt): |                 builder, update, upload, prompt): | ||||||
|     dirname = '%s-%s' % (pkg.source, release) |     dirname = '%s-%s' % (pkg.source, release) | ||||||
|     srcdir = os.path.join(workdir, dirname) |     srcdir = os.path.join(workdir, dirname) | ||||||
| 
 | 
 | ||||||
| @ -249,13 +252,16 @@ def do_backport(workdir, pkg, suffix, release, release_pocket, build, builder, | |||||||
|                                       upload, release) |                                       upload, release) | ||||||
|     bp_dist = get_backport_dist(release, release_pocket) |     bp_dist = get_backport_dist(release, release_pocket) | ||||||
| 
 | 
 | ||||||
|  |     changelog = 'No-change backport to %s' % (release,) | ||||||
|  |     if close: | ||||||
|  |         changelog += ' (LP: #%s)' % (close,) | ||||||
|     check_call(['dch', |     check_call(['dch', | ||||||
|                 '--force-bad-version', |                 '--force-bad-version', | ||||||
|                 '--force-distribution', |                 '--force-distribution', | ||||||
|                 '--preserve', |                 '--preserve', | ||||||
|                 '--newversion', bp_version, |                 '--newversion', bp_version, | ||||||
|                 '--distribution', bp_dist, |                 '--distribution', bp_dist, | ||||||
|                 'No-change backport to %s' % release], |                 changelog], | ||||||
|                cwd=srcdir) |                cwd=srcdir) | ||||||
|     check_call(['debuild', '--no-lintian', '-S', '-nc', '-sa'], cwd=srcdir) |     check_call(['debuild', '--no-lintian', '-S', '-nc', '-sa'], cwd=srcdir) | ||||||
| 
 | 
 | ||||||
| @ -305,6 +311,7 @@ def main(args): | |||||||
|             do_backport(workdir, |             do_backport(workdir, | ||||||
|                         pkg, |                         pkg, | ||||||
|                         opts.suffix, |                         opts.suffix, | ||||||
|  |                         opts.close, | ||||||
|                         release, |                         release, | ||||||
|                         opts.release_pocket, |                         opts.release_pocket, | ||||||
|                         opts.build, |                         opts.build, | ||||||
|  | |||||||
							
								
								
									
										6
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							| @ -1,10 +1,14 @@ | |||||||
| ubuntu-dev-tools (0.142) UNRELEASED; urgency=low | ubuntu-dev-tools (0.142) UNRELEASED; urgency=low | ||||||
| 
 | 
 | ||||||
|  |   [ Stefano Rivera ] | ||||||
|   * mk-sbuild: Support kmod, when checking for overlayfs availability. |   * mk-sbuild: Support kmod, when checking for overlayfs availability. | ||||||
|   * pbuilder-dist: improve bash_completion for *.dsc files. Thanks Maarten |   * pbuilder-dist: improve bash_completion for *.dsc files. Thanks Maarten | ||||||
|     Bezemer. (Closes: #670924, LP: #770529) |     Bezemer. (Closes: #670924, LP: #770529) | ||||||
| 
 | 
 | ||||||
|  -- Stefano Rivera <stefanor@debian.org>  Wed, 25 Apr 2012 17:38:58 +0200 |   [ Evan Broder ] | ||||||
|  |   * backportpackage: Add -c, --close flag to include a changelog closer. | ||||||
|  | 
 | ||||||
|  |  -- Evan Broder <evan@ebroder.net>  Fri, 11 May 2012 09:54:01 -0700 | ||||||
| 
 | 
 | ||||||
| ubuntu-dev-tools (0.141) unstable; urgency=low | ubuntu-dev-tools (0.141) unstable; urgency=low | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -97,6 +97,11 @@ Should be in the form \fBhttp://archive.ubuntu.com/ubuntu\fR. | |||||||
| If the package isn't found on this mirror, \fBbackportpackage\fR | If the package isn't found on this mirror, \fBbackportpackage\fR | ||||||
| will use Launchpad. | will use Launchpad. | ||||||
| .TP | .TP | ||||||
|  | .B \-c \fIBUG\fR, \fB\-\-close\fR=\fIBUG\fR | ||||||
|  | Include a Launchpad closer for the specified bug in the auto-generated | ||||||
|  | changelog. In the future, this may actually close the bug, but | ||||||
|  | currently does not. | ||||||
|  | .TP | ||||||
| .B \-l \fIINSTANCE\fR, \fB\-\-lpinstance\fR=\fIINSTANCE\fR | .B \-l \fIINSTANCE\fR, \fB\-\-lpinstance\fR=\fIINSTANCE\fR | ||||||
| Use the specified instance of Launchpad (e.g. "staging"), instead of | Use the specified instance of Launchpad (e.g. "staging"), instead of | ||||||
| the default of "production". | the default of "production". | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user