diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2008-08-21 12:28:12 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2008-08-21 12:28:12 -0700 |
commit | eda2bf71259c4d0c7c5faf044d16b03316f7ec74 (patch) | |
tree | 5be821cf65972cd92f4bf28ccbff7a5bc6b7174f | |
parent | eb93cf37a31b395bb7d8cb69ebf974ed54ea0322 (diff) |
177.67177.67
-rw-r--r-- | DRIVER_VERSION | 2 | ||||
-rw-r--r-- | misc.c | 4 | ||||
-rw-r--r-- | nvidia-installer.c | 2 | ||||
-rw-r--r-- | nvidia-installer.h | 2 | ||||
-rw-r--r-- | snarf.c | 6 | ||||
-rw-r--r-- | update.c | 9 |
6 files changed, 22 insertions, 3 deletions
diff --git a/DRIVER_VERSION b/DRIVER_VERSION index 527d088..ed365b7 100644 --- a/DRIVER_VERSION +++ b/DRIVER_VERSION @@ -1 +1 @@ -177.13 +177.67 @@ -700,7 +700,9 @@ int find_system_utils(Options *op) { "grep", "grep" }, { "dmesg", "util-linux" }, { "tail", "coreutils" }, - { "cut", "coreutils" } + { "cut", "coreutils" }, + { "tr", "coreutils" }, + { "sed", "sed" } }; /* keep in sync with the SystemOptionalUtils enum type */ diff --git a/nvidia-installer.c b/nvidia-installer.c index 394be97..69059b3 100644 --- a/nvidia-installer.c +++ b/nvidia-installer.c @@ -77,7 +77,7 @@ static void print_version(void) "The NVIDIA Accelerated Graphics Driver Set for %s-%s.", INSTALLER_OS, INSTALLER_ARCH); fmtout(""); - fmtoutp(TAB, "Copyright (C) 2003 NVIDIA Corporation."); + fmtoutp(TAB, "Copyright (C) 2003 - 2008 NVIDIA Corporation."); fmtout(""); } diff --git a/nvidia-installer.h b/nvidia-installer.h index e664dbf..509e441 100644 --- a/nvidia-installer.h +++ b/nvidia-installer.h @@ -46,6 +46,8 @@ typedef enum { DMESG, TAIL, CUT, + TR, + SED, MAX_SYSTEM_UTILS } SystemUtils; @@ -68,6 +68,12 @@ int snarf(Options *op, const char *url, int out_fd, uint32 flags) UrlResource *rsrc = NULL; int ret; + if (op->no_network) { + ui_error(op, "Unable to access file '%s', because the '--no-network' " + "commandline option was specified.", url); + return FALSE; + } + rsrc = url_resource_new(); rsrc->url = url_new(); rsrc->op = op; @@ -284,6 +284,15 @@ static int get_latest_driver_version_and_filename(Options *op, url = nvstrcat(op->ftp_site, "/XFree86/", INSTALLER_OS, "-", INSTALLER_ARCH, "/latest.txt", NULL); + /* check for no_network option */ + + if (op->no_network) { + ui_error(op, "Unable to determine most recent NVIDIA %s-%s driver " + "version: cannot access '%s', because the '--no-network' " + "commandline option was specified.", INSTALLER_OS, INSTALLER_ARCH, url); + goto done; + } + if ((fd = mkstemp(tmpfile)) == -1) { ui_error(op, "Unable to create temporary file (%s)", strerror(errno)); goto done; |