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')
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')