[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][maint-13.0] Bug 41039: Keep download-*.json files from previous version when new version does not include them



Title: GitLab

boklm pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build

Commits:

  • 7a02d02f
    by Nicolas Vigier at 2023-12-12T10:51:04+01:00
    Bug 41039: Keep download-*.json files from previous version when new version does not include them
    

1 changed file:

Changes:

  • tools/signing/upload-update_responses-to-staticiforme
    ... ... @@ -26,8 +26,22 @@ test -n "$(git status --porcelain=v1 | grep -v '^?')" \
    26 26
     is_project torbrowser && cd update_3
    
    27 27
     is_project mullvadbrowser && cd update_1
    
    28 28
     
    
    29
    -rm -Rf "$tbb_version_type"
    
    29
    +old_ur=$(mktemp -d)
    
    30
    +trap "rm -Rf $old_ur" EXIT
    
    31
    +mv "$tbb_version_type" "$old_ur/$tbb_version_type"
    
    30 32
     tar -xf "$update_responses_tar"
    
    33
    +
    
    34
    +# Keep download-*.json files from previous release if they are not in
    
    35
    +# the new release. This happens when a release does not include some
    
    36
    +# platforms. See tor-browser-build#41039.
    
    37
    +IFS=$'\n'
    
    38
    +for file in $(ls -1 "$old_ur/$tbb_version_type"/download-*.json)
    
    39
    +do
    
    40
    +  fname=$(basename "$file")
    
    41
    +  test -f "$tbb_version_type/$fname" && continue
    
    42
    +  mv "$file" "$tbb_version_type/$fname"
    
    43
    +done
    
    44
    +
    
    31 45
     git add "$tbb_version_type"
    
    32 46
     git commit -m "$tbb_version_type: new version, $tbb_version"
    
    33 47
     git push
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits