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 /update.c | |
parent | eb93cf37a31b395bb7d8cb69ebf974ed54ea0322 (diff) |
177.67177.67
Diffstat (limited to 'update.c')
-rw-r--r-- | update.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |