pike.git / lib / modules / Tools.pmod / Monger.pmod / MongerDeveloper.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Monger.pmod/MongerDeveloper.pike:1:   // -*- Pike -*-    - // $Id: MongerDeveloper.pike,v 1.5 2008/04/03 14:58:18 grubba Exp $ + // $Id: MongerDeveloper.pike,v 1.6 2008/04/03 16:11:38 grubba Exp $      #pike __REAL_VERSION__    - constant version = ("$Revision: 1.5 $"/" ")[1]; + constant version = ("$Revision: 1.6 $"/" ")[1];   constant description = "MongerDeveloper: the Pike module manger.";      private string default_repository = "http://modules.gotpike.org:8000/xmlrpc/index.pike";   private string default_builddir = getenv("HOME") + "/.monger";   private string repository;   private string builddir;      private int use_force=0;   private int use_local=0; -  + #if 0   private string my_command;   private string my_version;   private string run_pike;   private array(string) pike_args = ({});   private string original_dir; -  + #endif /* 0 */   private string username, password;   private mapping created = ([]);      void create()   {    repository = default_repository;    builddir = default_builddir;   }      //! set the username and password for accessing the remote repository.
pike.git/lib/modules/Tools.pmod/Monger.pmod/MongerDeveloper.pike:202:    module_id=(int)(x->get_module_id(module_name));       array a = x->get_module_dependencies(module_id, version);    foreach(a, mapping r)    if(r->dependency == "0") r->dependency = "Pike";    else    r->dependency = x->get_module_info((int)(r->dependency))->name;    return a;   }    + #if 0   private mapping get_module_action_data(string name, string|void version)   {    int module_id;    string dv;       string pike_version =    sprintf("%d.%d.%d", (int)__REAL_MAJOR__,    (int)__REAL_MINOR__, (int)__REAL_BUILD__);       object x = xmlrpc_handler(repository);
pike.git/lib/modules/Tools.pmod/Monger.pmod/MongerDeveloper.pike:261:    else    exit(1, "repository error: no recommended version to %s.\n"    "use --force --version=ver to force %s of a particular version.\n",    my_command, my_command);       mapping vi = x->get_module_version_info((int)module_id, dv);       return vi + info;   }    - #if 0 +    private void do_download(string name, string|void version)   {    mapping vi = get_module_action_data(name, version);       if(vi->download)    {    write("beginning download of version %s...\n", vi->version);    array rq = Protocols.HTTP.get_url_nice(vi->download);    if(!rq)    exit(1, "download error: unable to access download url\n");