Mercurial > hg > octave-lyh
diff scripts/pkg/pkg.m @ 15184:0b29c16a2645
pkg: check cURL library when using -forge
author | Carnë Draug <carandraug+dev@gmail.com> |
---|---|
date | Thu, 16 Aug 2012 16:25:15 +0100 |
parents | 3691a606283e |
children | f3b5cadfd6d5 |
line wrap: on
line diff
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -317,6 +317,9 @@ ## Send verbose output to pager immediately. Change setting locally. page_output_immediately (true, "local"); case "-forge" + if (! octave_config_info ("CURL_LIBS")) + error ("pkg: can't download from forge without the cURL library") + endif octave_forge = true; case "-local" global_install = false;