Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bugs in updates with release info
When release information were provided (using "-r"), updates which added symbols but not removed were failing because the element used to point to the release to be modified was obtained in a generator, which ceases to exist in the end of the for loop. Changing the loop to iterate over the actual elements of the releases list solved this bug. The strings in the result of get_info_from_release_string() were not being converted to upper case. This was leading to errors when searching for releases to be updated when release info is provided.
- Loading branch information
Showing
6 changed files
with
95 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/data_template/test_update/with_release_abi_break.stdout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Added: | ||
symbol | ||
|
||
Removed: | ||
one_symbol | ||
|
||
Merging all symbols in a single new release | ||
# This map file was updated with PROGRAM_NAME_VERSION | ||
|
||
WITH_RELEASE_INFO_1_0_0 | ||
{ | ||
global: | ||
symbol; | ||
local: | ||
*; | ||
} ; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
symbol | ||
one_symbol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Added: | ||
symbol | ||
|
||
# This map file was updated with PROGRAM_NAME_VERSION | ||
|
||
WITH_RELEASE_INFO_1_0_0 | ||
{ | ||
global: | ||
symbol; | ||
} BASE_1_0_0; | ||
|
||
BASE_1_0_0 | ||
{ | ||
global: | ||
one_symbol; | ||
local: | ||
*; | ||
} ; | ||
|