mirror of
				https://git.launchpad.net/ubuntu-dev-tools
				synced 2025-10-30 21:44:14 +00:00 
			
		
		
		
	* get-branches: Open the teams code page before making a new directory.
This commit is contained in:
		
							parent
							
								
									f928a041be
								
							
						
					
					
						commit
						dc80eacf3f
					
				
							
								
								
									
										3
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							| @ -1,6 +1,7 @@ | ||||
| ubuntu-dev-tools (0.37ubuntu1) intrepid; urgency=low | ||||
| 
 | ||||
|   * Changes go here. | ||||
|   [ Jonathan Patrick Davies ] | ||||
|   * get-branches: Open the teams code page before making a new directory. | ||||
| 
 | ||||
|  -- Jonathan Patrick Davies <jpds@ubuntu.com> Sun, 10 August 2008 22:07:58 +0100 | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										18
									
								
								get-branches
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								get-branches
									
									
									
									
									
								
							| @ -107,21 +107,21 @@ def main(): | ||||
|     pwd = os.getcwd() | ||||
|     os.chdir(directory) | ||||
| 
 | ||||
|     # Try to open the teams code page. | ||||
|     try: | ||||
|         sock = urllib2.urlopen("https://code.launchpad.net/~%s" % team) | ||||
|     except urllib2.HTTPError: | ||||
|         print >> sys.stderr, "The page https://code.launchpad.net/~%s does " \ | ||||
|             "not exist." % team | ||||
|         print >> sys.stderr, "Perhaps invalid team name?" | ||||
|         sys.exit(1) | ||||
| 
 | ||||
|     try: | ||||
|         os.makedirs(team) | ||||
|     except: | ||||
|         pass | ||||
|     os.chdir(team) | ||||
|      | ||||
|     # Try to open the teams code page. | ||||
|     try: | ||||
|         sock = urllib2.urlopen("https://code.launchpad.net/~%s" % team) | ||||
|     except urllib2.HTTPError: | ||||
|         print >> sys.stderr, "The page http://code.launchpad.net/~%s does " \ | ||||
|             "not exist." % team | ||||
|         print >> sys.stderr, "Perhaps invalid team name?" | ||||
|         sys.exit(1) | ||||
| 
 | ||||
|     branch_list_page = sock.read() | ||||
|     sock.close() | ||||
|      | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user