Skip to content

Commit 1026f11

Browse files
committed
fix: make get_previous_release.py translate triples for pre-v0.12.2.x
Relevant for the upcoming backport, which relies on a version of Dash before v0.12.2.2 for validating migration code handling databases created before bitcoin#10195 (which is included in v0.12.2.2, so we must use one patch version earlier, i.e. v0.12.1.x)
1 parent a0b2c7d commit 1026f11

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/get_previous_releases.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ def download_binary(tag, args) -> int:
124124
platform = "win64"
125125
elif tag < "v20" and platform in ["x86_64-apple-darwin", "arm64-apple-darwin"]:
126126
platform = "osx64"
127+
elif tag < "v0.12.2.3":
128+
if platform in ["arm-linux-gnueabihf"]:
129+
platform = "RPi2"
130+
elif platform in ["x86_64-apple-darwin", "arm64-apple-darwin"]:
131+
platform = "osx"
132+
elif platform in ["i686-pc-linux-gnu"]:
133+
platform = "linux32"
134+
elif platform in ["x86_64-linux-gnu"]:
135+
platform = "linux64"
127136
tarball = 'dashcore-{tag}-{platform}.tar.gz'.format(
128137
tag=tag[1:], platform=platform)
129138
tarballUrl = 'https://github.com/dashpay/dash/{bin_path}/{tarball}'.format(

0 commit comments

Comments
 (0)