HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #403

Ticket #403: bzr.2.patch

File bzr.2.patch, 1.2 KB (added by jrabbit, 5 years ago)
  • haikuporter

     
    55# copyright 2009-2010 Scott McCreary 
    66# copyright 2009 Alexander Deynichenko 
    77# copyright 2009-2010 Chris Roberts 
     8# copyright 2010 Jack Laxson (Jrabbit) 
    89 
    910info = {} 
    1011info['version'] = 'r' + '$Rev$'[6:-2] 
    … …  
    515516 
    516517                for src_uri in self.bepKeys['SRC_URI']: 
    517518                        # Examine the uri to determine if we need to perform a checkout instead of download 
    518                         if re.match('^cvs.*$|^svn.*$|^hg.*$|^git.*$', src_uri): 
     519                        if re.match('^cvs.*$|^svn.*$|^hg.*$|^git.*$|^bzr.*$', src_uri): 
    519520                                self.checkoutSource(src_uri) 
    520521                                return 
    521522 
    … …  
    608609                                checkoutCommand += " -r " + rev 
    609610                        checkoutCommand += " " + real_uri + " " + checkoutDir 
    610611 
     612                elif type == 'bzr': 
     613                        #http://doc.bazaar.canonical.com/bzr-0.10/bzr_man.htm#bzr-branch-from-location-to-location 
     614                        checkoutCommand = "bzr checkout --lightweight" 
     615                        if rev: 
     616                                checkoutCommand += " -r " + rev 
     617                        checkoutCommand += " " + real_uri + " " + checkoutDir    
     618 
    611619                else: 
    612620                        #TODO Skip the initial checkout if a rev is specified? 
    613621                        checkoutCommand = "git clone " + real_uri + " " + checkoutDir 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/