Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
This issue removes '<RemoveIncubating>' handling logics in `change_version.py`.
- r1 = re.compile('<RemoveIncubating>(.*?)</RemoveIncubating>') - r2 = re.compile('<IsSnapshot>(.*?)</IsSnapshot>') - r3 = re.compile('<SnapshotNumber>(.*?)</SnapshotNumber>') + r1 = re.compile('<IsSnapshot>(.*?)</IsSnapshot>') + r2 = re.compile('<SnapshotNumber>(.*?)</SnapshotNumber>') ... - if "<RemoveIncubating>" and "</RemoveIncubating>" in line and is_snapshot=="false": - old_remove_incubating = r1.search(line).group(1) - changed_str += line.replace(old_remove_incubating, "true") - elif "<IsSnapshot>" in line and "</IsSnapshot>" in line: - old_is_snapshot = r2.search(line).group(1) + if "<IsSnapshot>" in line and "</IsSnapshot>" in line: + old_is_snapshot = r1.search(line).group(1) changed_str += line.replace(old_is_snapshot, is_snapshot) elif "<SnapshotNumber>" in line and "</SnapshotNumber>" in line and is_snapshot=="false": - old_snapshot_number = r3.search(line).group(1) + old_snapshot_number = r2.search(line).group(1) changed_str += line.replace(old_snapshot_number, "00") else: changed_str += line