예제 #1
0
 def to_sxml(self):
     return (call_with_info(lambda rev:
                                [sxml.branch(repo=self.repository.name,
                                             module=self.module,
                                             revision=rev)],
                            self.srcdir, 'last changed rev')
             or [sxml.branch(repo=self.repository.name,
                             module=self.module)])
예제 #2
0
파일: tarball.py 프로젝트: mujin/jhbuild
 def to_sxml(self):
     return ([sxml.branch(module=self.module,
                          repo=self.repository.name,
                          version=self.version,
                          size=str(self.source_size),
                          hash=self.source_hash)]
             + [[sxml.patch(file=patch, strip=str(strip))]
                for patch, strip in self.patches])
예제 #3
0
파일: bzr.py 프로젝트: cheatiiit/jhbuild-1
 def to_sxml(self):
     attrs = {}
     if self.revspec:
         attrs = self.revspec()[0]
     return [sxml.branch(repo=self.repository.name,
                         module=self.module,
                         revid=self.tree_id(),
                         **attrs)]
예제 #4
0
 def to_sxml(self):
     return ([
         sxml.branch(module=self.module,
                     repo=self.repository.name,
                     version=self.version,
                     size=str(self.source_size),
                     hash=self.source_hash)
     ] + [[sxml.patch(file=patch, strip=str(strip))]
          for patch, strip in self.patches])
예제 #5
0
 def to_sxml(self):
     attrs = {}
     if self.revspec:
         attrs = self.revspec()[0]
     return [
         sxml.branch(repo=self.repository.name,
                     module=self.module,
                     revid=self.tree_id(),
                     **attrs)
     ]
예제 #6
0
파일: git.py 프로젝트: MarFerMS/jhbuild
 def to_sxml(self):
     attrs = {}
     if self.branch:
         attrs['revision'] = self.branch
     if self.checkoutdir:
         attrs['checkoutdir'] = self.checkoutdir
     if self.subdir:
         attrs['subdir'] = self.subdir
     return [sxml.branch(repo=self.repository.name,
                         module=self.module,
                         tag=self.tree_id(),
                         **attrs)]
예제 #7
0
파일: git.py 프로젝트: placidrage/jhbuild
 def to_sxml(self):
     attrs = {}
     if self.branch:
         attrs['revision'] = self.branch
     if self.checkoutdir:
         attrs['checkoutdir'] = self.checkoutdir
     if self.subdir:
         attrs['subdir'] = self.subdir
     return [sxml.branch(repo=self.repository.name,
                         module=self.module,
                         tag=self.tree_id(),
                         **attrs)]
예제 #8
0
 def to_sxml(self):
     return ([sxml.branch(module=self.module,
                          repo=self.repository,
                          version=self.version)])
예제 #9
0
 def to_sxml(self):
     # FIXME: fix the current revision
     return [sxml.branch(repo=self.repository.name, module=self.module)]
예제 #10
0
 def to_sxml(self):
     return ([sxml.branch(module=self.module,
                          repo=self.repository,
                          version=self.version)])
예제 #11
0
 def to_sxml(self):
     # FIXME: fix the current revision
     return [sxml.branch(repo=self.repository.name,
                         module=self.module)]
예제 #12
0
파일: pip.py 프로젝트: ntohge/jhbuild
 def to_sxml(self):
     return ([sxml.branch(repo=self.repository.name, version=self.version)])