コード例 #1
0
    def update_version(self):
        """
            @return: updated VersionsFile
        """
        fw_gr, versions_file, new_tags = ua.github_repo_new(
            self._repo_framework, 'silverstripe/framework', self.versions_file,
            self.update_majors)
        cms_gr, _, _ = ua.github_repo_new(self._repo_cms, 'silverstripe/cms',
                                          self.versions_file,
                                          self.update_majors)

        hashes = {}
        for version in new_tags:
            fw_gr.tag_checkout(version)
            try:
                cms_gr.tag_checkout(version)
            except exceptions.RuntimeError:
                print("Version %s does not exist on `cms` branch. Skipping.")
                continue

            hashes[version] = ua.hashes_get(
                versions_file, './.update-workspace/silverstripe/')

        versions_file.update(hashes)
        return versions_file
コード例 #2
0
ファイル: silverstripe.py プロジェクト: vielsoft/droopescan
    def update_version(self):
        """
            @return: updated VersionsFile
        """
        fw_gr, versions_file, new_tags = ua.github_repo_new(self._repo_framework,
                'silverstripe/framework', self.versions_file, self.update_majors)
        cms_gr, _, _ = ua.github_repo_new(self._repo_cms,
                'silverstripe/cms', self.versions_file, self.update_majors)

        hashes = {}
        for version in new_tags:
            fw_gr.tag_checkout(version)
            cms_gr.tag_checkout(version)

            hashes[version] = ua.hashes_get(versions_file, './.update-workspace/silverstripe/')

        versions_file.update(hashes)
        return versions_file
コード例 #3
0
ファイル: silverstripe.py プロジェクト: 5l1v3r1/droopescan-1
    def update_version(self):
        """
            @return: updated VersionsFile
        """
        fw_gr, versions_file, new_tags = ua.github_repo_new(self._repo_framework,
                'silverstripe/framework', self.versions_file, self.update_majors)
        cms_gr, _, _ = ua.github_repo_new(self._repo_cms,
                'silverstripe/cms', self.versions_file, self.update_majors)

        hashes = {}
        for version in new_tags:
            fw_gr.tag_checkout(version)
            cms_gr.tag_checkout(version)

            hashes[version] = ua.hashes_get(versions_file, './.update-workspace/silverstripe/')

        versions_file.update(hashes)
        return versions_file
コード例 #4
0
ファイル: wordpress.py プロジェクト: peterpt/droopescan
    def update_version(self):
        """
        @return: updated VersionsFile
        """
        gr, versions_file, new_tags = ua.github_repo_new('wordpress/wordpress/',
                'wordpress/wordpress/', self.versions_file, self.update_majors)

        hashes = {}
        for version in new_tags:
            gr.tag_checkout(version)
            hashes[version] = gr.hashes_get(versions_file, self.update_majors)

        versions_file.update(hashes)
        return versions_file
コード例 #5
0
ファイル: drupal.py プロジェクト: security-geeks/droopescan
    def update_version(self):
        """
        @return: updated VersionsFile
        """
        gr, versions_file, new_tags = ua.github_repo_new('drupal/drupal/',
                'drupal/drupal', self.versions_file, self.update_majors)

        hashes = {}
        for version in new_tags:
            gr.tag_checkout(version)
            hashes[version] = gr.hashes_get(versions_file)

        versions_file.update(hashes)
        return versions_file
コード例 #6
0
ファイル: joomla.py プロジェクト: sechacking/droopescan
    def update_version(self):
        """
        @return: updated VersionsFile
        """
        gr, versions_file, new_tags = ua.github_repo_new(
            "joomla/joomla-cms/", "joomla/joomla-cms/", self.versions_file, self.update_majors
        )

        hashes = {}
        for version in new_tags:
            gr.tag_checkout(version)
            hashes[version] = gr.hashes_get(versions_file)

        versions_file.update(hashes)
        return versions_file
コード例 #7
0
ファイル: moodle.py プロジェクト: 3-bits/droopescan
    def update_version(self):
        """
        @return: updated VersionsFile
        """
        gr, versions_file, new_tags = ua.github_repo_new('moodle/moodle/',
                'moodle/moodle', self.versions_file, self.update_majors)

        hashes = {}
        for version in new_tags:
            # tags look like "v1.0" in Moodle. 
            gr.tag_checkout("v" + version)
            hashes[version] = gr.hashes_get(versions_file)

        versions_file.update(hashes)
        return versions_file