Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GMP version with leading zero for feed dirs #1287

Merged
merged 3 commits into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Move EXE credential generation to a Python script [#1260](https://github.com/greenbone/gvmd/pull/1260) [#1262](https://github.com/greenbone/gvmd/pull/1262)
- Clarify documentation for --scan-host parameter [#1277](https://github.com/greenbone/gvmd/pull/1277)

### Fixed
- Use GMP version with leading zero for feed dirs [#1287](https://github.com/greenbone/gvmd/pull/1287)

### Removed
- Reduce Severity Classes [#1285](https://github.com/greenbone/gvmd/pull/1285)

Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ set (GVMD_SCAP_DATABASE_VERSION 16)
set (GVMD_CERT_DATABASE_VERSION 6)

set (GMP_VERSION "21.4")
set (GMP_VERSION_FEED "21.04")

if (SYSCONF_INSTALL_DIR)
set (SYSCONFDIR "${SYSCONF_INSTALL_DIR}")
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ endif (NOT CMAKE_BUILD_TYPE MATCHES "Release")
if (GMP_VERSION)
add_definitions (-DGMP_VERSION="${GMP_VERSION}")
endif (GMP_VERSION)
if (GMP_VERSION_FEED)
add_definitions (-DGMP_VERSION_FEED="${GMP_VERSION_FEED}")
endif (GMP_VERSION_FEED)

add_definitions (-DGVMD_DATABASE_VERSION=${GVMD_DATABASE_VERSION})
add_definitions (-DGVMD_SCAP_DATABASE_VERSION=${GVMD_SCAP_DATABASE_VERSION})
Expand Down
2 changes: 1 addition & 1 deletion src/manage_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ feed_dir_configs ()
static gchar *path = NULL;
if (path == NULL)
path = g_build_filename (GVMD_FEED_DIR,
GMP_VERSION,
GMP_VERSION_FEED,
"configs",
NULL);
return path;
Expand Down
2 changes: 1 addition & 1 deletion src/manage_migrators.c
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ migrate_232_to_233_set_predefined (const gchar *type, const gchar *table)
gchar *dir_path;

dir_path = g_build_filename (GVMD_FEED_DIR,
GMP_VERSION,
GMP_VERSION_FEED,
type,
NULL);

Expand Down
2 changes: 1 addition & 1 deletion src/manage_port_lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ feed_dir_port_lists ()
static gchar *path = NULL;
if (path == NULL)
path = g_build_filename (GVMD_FEED_DIR,
GMP_VERSION,
GMP_VERSION_FEED,
"port_lists",
NULL);
return path;
Expand Down
2 changes: 1 addition & 1 deletion src/manage_report_formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ feed_dir_report_formats ()
static gchar *path = NULL;
if (path == NULL)
path = g_build_filename (GVMD_FEED_DIR,
GMP_VERSION,
GMP_VERSION_FEED,
"report_formats",
NULL);
return path;
Expand Down