Ticket #403: bzr.2.patch
| File bzr.2.patch, 1.2 KB (added by jrabbit, 5 years ago) |
|---|
-
haikuporter
5 5 # copyright 2009-2010 Scott McCreary 6 6 # copyright 2009 Alexander Deynichenko 7 7 # copyright 2009-2010 Chris Roberts 8 # copyright 2010 Jack Laxson (Jrabbit) 8 9 9 10 info = {} 10 11 info['version'] = 'r' + '$Rev$'[6:-2] … … 515 516 516 517 for src_uri in self.bepKeys['SRC_URI']: 517 518 # 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): 519 520 self.checkoutSource(src_uri) 520 521 return 521 522 … … 608 609 checkoutCommand += " -r " + rev 609 610 checkoutCommand += " " + real_uri + " " + checkoutDir 610 611 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 611 619 else: 612 620 #TODO Skip the initial checkout if a rev is specified? 613 621 checkoutCommand = "git clone " + real_uri + " " + checkoutDir
