download modules
This commit is contained in:
		@@ -16,7 +16,7 @@ std::vector<std::string> StoreModule::parse(std::wstring str, std::wstring regex
 | 
			
		||||
    std::cout << "Handling: " << to_utf8(str) << std::endl;
 | 
			
		||||
    for (boost::wsregex_iterator it{str.begin(), str.end(), r}, end{}; it != end;
 | 
			
		||||
         it++) {
 | 
			
		||||
        std::wcout << "Parsed" << it->str() << std::endl;
 | 
			
		||||
        std::wcout << "Parsed: " << it->str() << std::endl;
 | 
			
		||||
        result.push_back(to_utf8(it->str()));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -52,7 +52,7 @@ std::vector<std::string> StoreModule::parse_net_weight(std::vector<std::string>
 | 
			
		||||
            result.push_back("?");
 | 
			
		||||
        } else {
 | 
			
		||||
            result.push_back(parsed[0]);
 | 
			
		||||
            name.erase(0, name.find(parsed[0]) + parsed[0].length());
 | 
			
		||||
            name.erase(name.find(parsed[0]), name.find(parsed[0]) + parsed[0].length());
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return result;
 | 
			
		||||
 
 | 
			
		||||
@@ -101,7 +101,7 @@ std::vector<std::string> Parser::check_updates() {
 | 
			
		||||
    for (const auto& file : directory_iterator(path)) {
 | 
			
		||||
        if (!is_regular_file(file)) continue;
 | 
			
		||||
        stored_modules.push_back(file.path().filename());
 | 
			
		||||
        std::cout << file.path().filename() << " detected store module" << std::endl;
 | 
			
		||||
        std::cout << file.path().filename() << " detected local store module" << std::endl;
 | 
			
		||||
    }
 | 
			
		||||
    Net n;
 | 
			
		||||
    std::cerr << "Downloading modules list from: " << s.get_setting("stores_modules_url") << std::endl;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user