From 42d326097200039fcb5b7510eaa26647a8f7cc49 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Wed, 15 Sep 2010 11:38:32 +0000 Subject: [PATCH] [Development] Improve download-xorg-7.5 script to work with .tar.gz archives. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4133 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/download-xorg-7.5 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unix/download-xorg-7.5 b/unix/download-xorg-7.5 index 50e4cf5f..136be1c6 100755 --- a/unix/download-xorg-7.5 +++ b/unix/download-xorg-7.5 @@ -74,7 +74,10 @@ def main(): for pkg in packages.keys(): loc = packages[pkg] - fname = pkg + ".tar.bz2" + if ".tar.bz2" in loc: + fname = pkg + ".tar.bz2" + else : + fname = pkg + ".tar.gz" if not os.path.exists(fname): assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc]) -- 2.39.5