diff options
author | DRC <dcommander@users.sourceforge.net> | 2009-04-15 01:48:30 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2009-04-15 01:48:30 +0000 |
commit | a4cb88291be02438fc70fece0d9f101436d3a549 (patch) | |
tree | 1a0c35a21319a93bd78dd5bb64abe1f58293d448 | |
parent | a9efd3885f6df4f23dbaf448b14b0ca9e09b6b6b (diff) | |
download | tigervnc-a4cb88291be02438fc70fece0d9f101436d3a549.tar.gz tigervnc-a4cb88291be02438fc70fece0d9f101436d3a549.zip |
Use spawnvp on all platforms, even those that support the newer API
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3777 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rwxr-xr-x | unix/download-xorg | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/unix/download-xorg b/unix/download-xorg index 1f4872f5..c42ec6bf 100755 --- a/unix/download-xorg +++ b/unix/download-xorg @@ -4,13 +4,6 @@ import os import glob -hassubprocess = 1 - -try: - import subprocess -except ImportError: - hassubprocess = 0 - #INDI = "http://ftp.sunet.se/pub/X11/ftp.x.org/individual" INDI = "http://ftp.x.org/pub/individual/" PROTO = INDI + "proto/" @@ -82,9 +75,6 @@ def main(): for pkg in packages.keys(): loc = packages[pkg] fname = pkg + ".tar.bz2" - if hassubprocess == 1: - assert 0 == subprocess.call(["wget", "-N", "-c", "-O", fname, loc]) - else: - assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc]) + assert 0 == os.spawnvp(os.P_WAIT, "wget", ["-N", "-c", "-O", fname, loc]) main() |