clang script: Let DownloadAndUnpack() work with xz and bz2 tar archives too

Not used by anything yet.

Bug: 1261812
Change-Id: I0a0ec249091fb32bc3e87d9573c55135a35a83fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3655770
Commit-Queue: Hans Wennborg <hans@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1005309}
NOKEYCHECK=True
GitOrigin-RevId: 816fcdbff09b7edb478fcf291ce67d6f64a0892e
diff --git a/scripts/update.py b/scripts/update.py
index da5cc70..3a4bbeb 100755
--- a/scripts/update.py
+++ b/scripts/update.py
@@ -163,7 +163,7 @@
       assert path_prefixes is None
       zipfile.ZipFile(f).extractall(path=output_dir)
     else:
-      t = tarfile.open(mode='r:gz', fileobj=f)
+      t = tarfile.open(mode='r:*', fileobj=f)
       members = None
       if path_prefixes is not None:
         members = [m for m in t.getmembers()