Copy GeoIP file *before* resetting its time, fixes reproduciblity

parent fced5640
Pipeline #2154 passed with stages
in 54 minutes and 36 seconds
......@@ -30,10 +30,10 @@ def main():
build_android()
# zip geoip database
geoip_path = os.path.join(EXT_DIR, 'tor', 'src', 'config', 'geoip')
geoip_path = os.path.join(REPO_DIR, 'geoip')
copy(os.path.join(EXT_DIR, 'tor', 'src', 'config', 'geoip'), geoip_path)
reset_time(geoip_path)
copy(geoip_path, os.path.join(REPO_DIR, 'geoip')) # copy first to not zip directory
check_call(['zip', '-X', os.path.join(REPO_DIR, 'geoip.zip'), os.path.join(REPO_DIR, 'geoip')])
check_call(['zip', '-X', 'geoip.zip', 'geoip'], cwd=REPO_DIR)
# zip binaries together
file_list = ['tor_linux-x86_64.zip', 'geoip.zip']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment