mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Update publish_betas command
This commit is contained in:
		
							parent
							
								
									a7e7b0d381
								
							
						
					
					
						commit
						c7d4af9ab7
					
				@ -63,10 +63,9 @@ def build_cache_dir():
 | 
				
			|||||||
    return ans
 | 
					    return ans
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def require_git_master():
 | 
					def require_git_master(branch='master'):
 | 
				
			||||||
    if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).strip() != 'master':
 | 
					    if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).strip() != branch:
 | 
				
			||||||
        print >>sys.stderr, 'You must be in the master git branch'
 | 
					        raise SystemExit('You must be in the {} got branch'.format(branch))
 | 
				
			||||||
        raise SystemExit(1)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def require_clean_git():
 | 
					def require_clean_git():
 | 
				
			||||||
 | 
				
			|||||||
@ -157,6 +157,7 @@ class PublishBetas(Command):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def pre_sub_commands(self, opts):
 | 
					    def pre_sub_commands(self, opts):
 | 
				
			||||||
        require_clean_git()
 | 
					        require_clean_git()
 | 
				
			||||||
 | 
					        require_git_master('vs2015')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def run(self, opts):
 | 
					    def run(self, opts):
 | 
				
			||||||
        dist = self.a(self.j(self.d(self.SRC), 'dist'))
 | 
					        dist = self.a(self.j(self.d(self.SRC), 'dist'))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user