Skip to content

Commit

Permalink
Fix bump script for macos and deb
Browse files Browse the repository at this point in the history
  • Loading branch information
DFolchA committed Oct 18, 2023
1 parent 17a31d2 commit 9e140e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
filedata=file.read()
install_type=re.search(r'(wazuh-(agent|manager|indexer|dashboard))',
filedata).group(1)
changelog_string=(f"wazuh-{install_type} ({version}-RELEASE) stable; "
changelog_string=(f"{install_type} ({version}-RELEASE) stable; "
"urgency=low\n\n * More info: https://documentation.wazuh.com/"
f"current/release-notes/release-{version.major}-{version.minor}-"
f"{version.micro}.html\n\n -- "
Expand Down Expand Up @@ -128,9 +128,9 @@
REGEX=r'<string>(\d+\.\d+\.\d+)-(\d+)</string>'
filedata=re.sub(REGEX, f'<string>{version}-{args.revision}</string>',
filedata)
REGEX=r'<string>wazuh-agent-(\d+\.\d+\.\d+)-(\d+)</string>'
REGEX=r'<string>wazuh-agent-(\d+\.\d+\.\d+)-(\d+)'
filedata=re.sub(REGEX,
f'<string>wazuh-agent-{version}-{args.revision}</string>',
f'<string>wazuh-agent-{version}-{args.revision}',
filedata)

with open(pkgproj_file, 'w', encoding="utf-8") as file:
Expand Down

0 comments on commit 9e140e5

Please sign in to comment.