diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-06 22:34:36 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-06 22:34:36 +0000 |
commit | f3263568749070b8d03c809c10caa78747073e26 (patch) | |
tree | f7f75e2010fc6de555e0f2fc7b0205581a6950c7 /config/global | |
parent | a45c6b0232594a424fcbbd1affe7962261cafdc9 (diff) | |
download | crosstool-ng-f3263568749070b8d03c809c10caa78747073e26.tar.gz crosstool-ng-f3263568749070b8d03c809c10caa78747073e26.tar.bz2 crosstool-ng-f3263568749070b8d03c809c10caa78747073e26.zip |
Add an option to forbid downloads.
Idea and code-base from Don Elwell <don@manifoldlabs.com>, adapted by me.
/trunk/scripts/functions | 6 6 0 0 ++++++
/trunk/config/global/download.in | 18 18 0 0 ++++++++++++++++++
2 files changed, 24 insertions(+)
Diffstat (limited to 'config/global')
-rw-r--r-- | config/global/download.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/global/download.in b/config/global/download.in index 910cb21f..a82cda84 100644 --- a/config/global/download.in +++ b/config/global/download.in @@ -2,6 +2,22 @@ comment "Downloading" +config FORBID_DOWNLOAD + bool + prompt "Forbid downloads" + default n + help + Normally, crosstool-NG will try to download missing tarballs (or + checkout from CVS/SVN...). + If you do not have network connectivity when you run crosstool-NG, + and some files are missing, it can be a long time before crosstool-NG + fails. + + Saying 'y' here will prevent crosstool-NG from downloading missing + files, thus failing early so that you don't get stuck. + +if ! FORBID_DOWNLOAD + config FORCE_DOWNLOAD bool prompt "Force downloads" @@ -281,3 +297,5 @@ config ONLY_DOWNLOAD Only download the tarballs. Exit once it done. Usefull to pre-retrieve the tarballs before going off-line. + +endif # ! FORBID_DOWNLOAD |