Files
python-pymisp/update-misp-objects.sh
Sebastian Wagner 44ff734011 - update to version 2.4.197:
- Changes
   - Bump deps, version, templates. [Raphaël Vinot]
   - [misp-objects] updated to the latest version. [Alexandre Dulaunoy]
 - Fix
   - Avoid printing huge log when a request fails. [Raphaël Vinot]
     fix #1286
- update to version 2.4.196:
 - Changes
   - Bump version. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
 - Fix
   - Remove broken config. [Raphaël Vinot]
- update to version 2.4.195:
 - New
   - Add delete role, test suite for roles. [Raphaël Vinot]
   - Test publish & search. [Raphaël Vinot]
   - Add delete role, test suite for roles. [Raphaël Vinot]
   - Test publish & search. [Raphaël Vinot]
 - Changes
   - Bump Changelog. [Raphaël Vinot]
   - Bump objects. [Raphaël Vinot]
   - Bump Changelog (issue with template) [Raphaël Vinot]
   - Bump changelog. [Raphaël Vinot]
   - Bump version. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - Bump deps. [Raphaël Vinot]
   - [publish tests] further debugging. [iglocska]
   - [publish test] check if the publishing actually worked as intended.

OBS-URL: https://build.opensuse.org/package/show/security:csirt-tooling/python-pymisp?expand=0&rev=2
2024-09-03 16:26:23 +00:00

12 lines
511 B
Bash

#!/bin/bash
set -x
version=$(awk '/^Version:/ {print $2}' python-pymisp.spec)
echo "Detected version $version"
revision=$(wget "https://github.com/MISP/PyMISP/tree/v$version/pymisp/data" -O - | awk '/\/MISP\/misp-objects\/tree\//' | grep -Eo 'misp-objects/tree/[[:alnum:]]{40}' | egrep -Eo "[[:alnum:]]{40}")
echo "Detected revision $revision"
sed -i "s/^\%define misp_objects_revision.*$/%define misp_objects_revision ${revision}/" python-pymisp.spec
rm misp-objects.tar.gz
osc service runall download_files