]> source.dussan.org Git - tigervnc.git/commitdiff
[Development] Improve download-xorg-7.5 script to work with .tar.gz archives.
authorAdam Tkac <atkac@redhat.com>
Wed, 15 Sep 2010 11:38:32 +0000 (11:38 +0000)
committerAdam Tkac <atkac@redhat.com>
Wed, 15 Sep 2010 11:38:32 +0000 (11:38 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4133 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/download-xorg-7.5

index 50e4cf5f3b03efb36e8abb09b5a7da39482cbbe7..136be1c6605a3f4be04c14a116416160b9b54e53 100755 (executable)
@@ -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])