mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-10-31 14:04:03 +00:00 
			
		
		
		
	* revuput: deal with the case of NEW packages.
* hugdaylist: added a tool to write Wiki lists of bugs in <buglist url> as in https://wiki.ubuntu.com/UbuntuBugDay/20070912
This commit is contained in:
		
							parent
							
								
									afb3b7ad12
								
							
						
					
					
						commit
						d614cabff7
					
				
							
								
								
									
										6
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							| @ -1,7 +1,13 @@ | ||||
| ubuntu-dev-tools (0.7) UNRELEASED; urgency=low | ||||
| 
 | ||||
|   [Colin Watson] | ||||
|   * Fix *roff use (hyphens vs. dashes, start each sentence on a new line). | ||||
| 
 | ||||
|   [Daniel Holbach] | ||||
|   * revuput: deal with the case of NEW packages. | ||||
|   * hugdaylist: added a tool to write Wiki lists of bugs in <buglist url> as | ||||
|     in https://wiki.ubuntu.com/UbuntuBugDay/20070912 | ||||
| 
 | ||||
|  -- Colin Watson <cjwatson@ubuntu.com>  Wed, 12 Sep 2007 09:28:54 +0100 | ||||
| 
 | ||||
| ubuntu-dev-tools (0.6) gutsy; urgency=low | ||||
|  | ||||
							
								
								
									
										2
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							| @ -12,7 +12,7 @@ Standards-Version: 3.7.2 | ||||
| Package: ubuntu-dev-tools | ||||
| Architecture: all | ||||
| Section: devel | ||||
| Depends: ${python:Depends}, ${misc:Depends}, binutils, devscripts, sudo, python-launchpad-bugs (>= 0.2.9) | ||||
| Depends: ${python:Depends}, ${misc:Depends}, binutils, devscripts, sudo, python-launchpad-bugs (>= 0.2.14) | ||||
| Recommends: bzr, pbuilder | ||||
| Conflicts: devscripts (<< 2.10.7ubuntu5) | ||||
| Replaces: devscripts (<< 2.10.7ubuntu5) | ||||
|  | ||||
							
								
								
									
										68
									
								
								hugdaylist
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										68
									
								
								hugdaylist
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,68 @@ | ||||
| #!/usr/bin/python | ||||
| # | ||||
| # Copyright 2007, Canonical, Daniel Holbach | ||||
| # | ||||
| # GPL 3 | ||||
| # | ||||
| # hugdaylist <url> | ||||
| # - produces lists like https://wiki.ubuntu.com/UbuntuBugDay/20070912?action=raw | ||||
| # | ||||
| # hugdaylist -n <howmany> <url> | ||||
| # - will only list <howmany> URLs | ||||
| # | ||||
| 
 | ||||
| import re | ||||
| import os | ||||
| import sys | ||||
| import string | ||||
| 
 | ||||
| try: | ||||
|     import launchpadbugs.connector as Connector | ||||
| except: | ||||
|     print >> sys.stderr, \ | ||||
| 	"You need  python-launchpad-bugs (>= 0.2.9)  installed to use hugdaylist." | ||||
|     sys.exit(1) | ||||
| 
 | ||||
| 
 | ||||
| USAGE = "hugdaylist [-n <howmany>] <URL>" | ||||
| 
 | ||||
| def check_args(): | ||||
|     howmany = -1 | ||||
|     url = "" | ||||
|      | ||||
|     if len(sys.argv) < 2: | ||||
|         print >> sys.stderr, USAGE | ||||
|         sys.exit(1) | ||||
| 
 | ||||
|     if sys.argv[1] == "-n": | ||||
|         howmany = int(sys.argv[2]) | ||||
|         url = sys.argv[3] | ||||
|     else: | ||||
|         url = sys.argv[1] | ||||
|          | ||||
|     return (howmany, url) | ||||
| 
 | ||||
| def main():  | ||||
| 
 | ||||
|     (howmany, url) = check_args() | ||||
|      | ||||
|     BugList = Connector.ConnectBugList() | ||||
|     l = BugList(url) | ||||
|      | ||||
|     if not l.bugs: | ||||
|         print "BugList of %s is empty." % url | ||||
|         sys.exit(0) | ||||
| 
 | ||||
|     if howmany == -1: | ||||
|         howmany = len(l.bugs) | ||||
|          | ||||
|     print "|| Bug || Subject || Triager ||" | ||||
| 
 | ||||
|     for i in list(l.bugs)[:howmany]: | ||||
|         print '||<rowstyle="background-color: ;"> [%s %s] || %s || ||' % \ | ||||
|             (i.url, i.bugnumber, i.summary) | ||||
| 
 | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
| 	main() | ||||
| 
 | ||||
							
								
								
									
										25
									
								
								revuput
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								revuput
									
									
									
									
									
								
							| @ -1,12 +1,12 @@ | ||||
| #!/usr/bin/python | ||||
| # | ||||
| # Copyright 2007, Canonical | ||||
| # Copyright 2007, Canonical, Daniel Holbach | ||||
| # | ||||
| # GPL 3 | ||||
| # | ||||
| # | ||||
| # Notes: | ||||
| #  - needs dput, python-launchpad-bugs (>= 0.2.9) | ||||
| #  - needs dput, python-launchpad-bugs (>= 0.2.14) | ||||
| #  - needs http://launchpad.net/bugs/137767 to get fixed | ||||
| # | ||||
| # | ||||
| @ -28,7 +28,7 @@ try: | ||||
|     import launchpadbugs.connector as Connector | ||||
| except: | ||||
|     print >> sys.stderr, \ | ||||
| 	"You need  python-launchpad-bugs (>= 0.2.9)  installed to use revuput." | ||||
| 	"You need  python-launchpad-bugs (>= 0.2.14)  installed to use revuput." | ||||
|     sys.exit(1) | ||||
| 
 | ||||
| #try: | ||||
| @ -150,6 +150,8 @@ def deal_with_bugreport(bugnumbers, host, incoming, sourcepackage, version): | ||||
| 	if component in ["universe", "multiverse"] and \ | ||||
| 	   'ubuntu-universe-sponsors' not in [str(s) for s in bug.subscribers]: | ||||
| 	    bug.subscribers.add('ubuntu-universe-sponsors') | ||||
| 	if not component: | ||||
| 	    bug.tags.append("needs-packaging") | ||||
| 
 | ||||
| 	comment = Bug.NewComment(text=assemble_bug_comment_text(host, incoming, | ||||
| 					    sourcepackage, version), | ||||
| @ -198,10 +200,18 @@ def file_bug(sourcepackage, version): | ||||
|     Bug = Connector.ConnectBug() | ||||
|     Bug.authentication = os.path.expanduser("~/.lpcookie") | ||||
| 
 | ||||
|     bug = Bug.New(product={"name": sourcepackage, "target": "ubuntu"}, | ||||
| 		  summary="Please sponsor %s %s" % (sourcepackage, version), | ||||
| 		  description=\ | ||||
| 		    "The new package will be uploaded to PPA shortly.") | ||||
|     try: | ||||
| 	bug = Bug.New(product={"name": sourcepackage, "target": "ubuntu"}, | ||||
| 		      summary="Please sponsor %s %s" % \ | ||||
| 				    (sourcepackage, version), | ||||
| 		      description=\ | ||||
| 		      "The new package will be uploaded to PPA shortly.") | ||||
|     except: | ||||
| 	bug = Bug.New(product={"name": "ubuntu"}, | ||||
| 		      summary="Please sponsor %s %s" % \ | ||||
| 				    (sourcepackage, version), | ||||
| 		      description=\ | ||||
| 		      "The new package will be uploaded to PPA shortly.") | ||||
| 
 | ||||
|     print "Successfully filed bug %s: http://launchpad.net/bugs/%s" % \ | ||||
| 	(bug.bugnumber, bug.bugnumber) | ||||
| @ -228,6 +238,7 @@ def main(): | ||||
|     host = lookup_dput_host(location) | ||||
|     (dput_res, incoming) = call_dput(location, changesfile) | ||||
|     if not dput_res: | ||||
| 	print >> sys.stderr, "%s was not uploaded." % changesfile | ||||
|     	sys.exit(1) | ||||
| 
 | ||||
|     fixed_lp_bugs = find_fixed_launchpad_bug(changesfile) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user