Esempio n. 1
0
File: rpm.py Progetto: jcmcken/crate
 def build(self, destination):
     code, stdout, stderr = run('createrepo -c .cache .', cwd=destination)
     LOG.debug(stdout)
     if stderr:
         LOG.error(stderr)
     if code != 0:
         raise SyncError('failed to run createrepo on staged RPM repository')
Esempio n. 2
0
File: gem.py Progetto: jcmcken/crate
 def build(self, destination):
     code, stdout, stderr = run('gem generate_index -d %s' % destination)
     LOG.debug(stdout)
     if stderr:
         LOG.error(stderr)
     if code != 0:
         raise SyncError('failed to create gem index')