summaryrefslogtreecommitdiff
path: root/update.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2008-08-21 12:28:12 -0700
committerAaron Plattner <aplattner@nvidia.com>2008-08-21 12:28:12 -0700
commiteda2bf71259c4d0c7c5faf044d16b03316f7ec74 (patch)
tree5be821cf65972cd92f4bf28ccbff7a5bc6b7174f /update.c
parenteb93cf37a31b395bb7d8cb69ebf974ed54ea0322 (diff)
177.67177.67
Diffstat (limited to 'update.c')
-rw-r--r--update.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.c b/update.c
index 3615db5..ed491b2 100644
--- a/update.c
+++ b/update.c
@@ -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;