From a4cb88291be02438fc70fece0d9f101436d3a549 Mon Sep 17 00:00:00 2001 From: DRC Date: Wed, 15 Apr 2009 01:48:30 +0000 Subject: [PATCH] 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 --- unix/download-xorg | 12 +----------- 1 file changed, 1 insertion(+), 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() -- 2.39.5