def get_manifest_info(manifest_xml):
        """
        Parse the manifest XML and create a dictionary with the data
        """

        manifest_info = mf_parse.Manifest(manifest_xml, is_bytes=True)
        manifest_data = manifest_info.parse_data()

        return mf_info.ManifestInfo(manifest_data)
Example #2
0
    def get_project_info(self):
        """
        Return generate of project_name with project git link, e.g.:
            'backup': 'https://github.com/couchbase/backup.git',
            'cbftx': 'https://github.com/couchbase/cbftx.git'
        """

        manifest = cb_parse.Manifest(self.input_manifest)
        manifest_data = manifest.parse_data()
        manifest_info = cb_info.ManifestInfo(manifest_data)
        for p in manifest_info.get_projects():
            remote, url = manifest_info.get_project_remote_info(p)
            if url.startswith('ssh'):
                self.priv_urls[p] = url.replace('ssh://git@', 'https://')