summaryrefslogtreecommitdiffstats
path: root/unix/download-xorg-7.5
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-09-15 11:38:32 +0000
committerAdam Tkac <atkac@redhat.com>2010-09-15 11:38:32 +0000
commit42d326097200039fcb5b7510eaa26647a8f7cc49 (patch)
tree7768fcc8f8da9d9b1b6f22ad1977773228994818 /unix/download-xorg-7.5
parenta35b500a23ef129eafed2db2fc932132a7f61968 (diff)
downloadtigervnc-42d326097200039fcb5b7510eaa26647a8f7cc49.tar.gz
tigervnc-42d326097200039fcb5b7510eaa26647a8f7cc49.zip
[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
Diffstat (limited to 'unix/download-xorg-7.5')
-rwxr-xr-xunix/download-xorg-7.55
1 files changed, 4 insertions, 1 deletions
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])