Преглед изворни кода

New neo-url dep

default_compile_flags
vector-of-bool пре 4 година
родитељ
комит
fe0cac022c
6 измењених фајлова са 28 додато и 5 уклоњено
  1. +8
    -0
      catalog.json
  2. +11
    -0
      catalog.old.json
  3. +1
    -1
      package.jsonc
  4. +4
    -1
      src/dds/catalog/catalog.hpp
  5. +2
    -2
      src/dds/catalog/remote/http.cpp
  6. +2
    -1
      tools/gen-catalog-json.py

+ 8
- 0
catalog.json Прегледај датотеку

@@ -2069,6 +2069,14 @@
"description": "URL parsing and handling library.",
"transform": [],
"url": "git+https://github.com/vector-of-bool/neo-url.git#0.2.1"
},
"0.2.2": {
"depends": [
"neo-fun^0.5.5"
],
"description": "URL parsing and handling library.",
"transform": [],
"url": "git+https://github.com/vector-of-bool/neo-url.git#0.2.2"
}
},
"nlohmann-json": {

+ 11
- 0
catalog.old.json Прегледај датотеку

@@ -2552,6 +2552,17 @@
"transform": [],
"url": "https://github.com/vector-of-bool/neo-url.git"
}
},
"0.2.2": {
"depends": [
"neo-fun^0.5.5"
],
"description": "URL parsing and handling library.",
"git": {
"ref": "0.2.2",
"transform": [],
"url": "https://github.com/vector-of-bool/neo-url.git"
}
}
},
"nlohmann-json": {

+ 1
- 1
package.jsonc Прегледај датотеку

@@ -11,7 +11,7 @@
"neo-sqlite3@0.4.1",
"neo-fun~0.5.4",
"neo-compress~0.1.1",
"neo-url~0.2.1",
"neo-url~0.2.2",
"semver@0.2.2",
"pubgrub@0.2.1",
"vob-json5@0.1.5",

+ 4
- 1
src/dds/catalog/catalog.hpp Прегледај датотеку

@@ -45,6 +45,9 @@ public:
auto content = dds::slurp_file(json_path);
import_json_str(content);
}

auto& database() noexcept { return _db; }
auto& database() const noexcept { return _db; }
};

} // namespace dds
} // namespace dds

+ 2
- 2
src/dds/catalog/remote/http.cpp Прегледај датотеку

@@ -19,7 +19,7 @@ void http_download_with_redir(neo::url url, path_ref dest) {
? http_session::connect_ssl(*url.host, url.port_or_default_port_or(443))
: http_session::connect(*url.host, url.port_or_default_port_or(80));

sess.send_head({.method = "GET", .path = url.path_string()});
sess.send_head({.method = "GET", .path = url.path});

auto res_head = sess.recv_head();
if (res_head.is_error()) {
@@ -109,7 +109,7 @@ void http_remote_listing::pull_source(path_ref dest) const {
this->url);

auto tdir = dds::temporary_dir::create();
auto url_path = fs::path(url.path_string());
auto url_path = fs::path(url.path);
auto fname = url_path.filename();
if (fname.empty()) {
fname = "dds-download.tmp";

+ 2
- 1
tools/gen-catalog-json.py Прегледај датотеку

@@ -292,7 +292,8 @@ PACKAGES = [
github_package('neo-buffer', 'vector-of-bool/neo-buffer',
['0.2.1', '0.3.0', '0.4.0', '0.4.1', '0.4.2']),
github_package('neo-compress', 'vector-of-bool/neo-compress', ['0.1.0', '0.1.1']),
github_package('neo-url', 'vector-of-bool/neo-url', ['0.1.0', '0.1.1', '0.1.2', '0.2.0', '0.2.1']),
github_package('neo-url', 'vector-of-bool/neo-url',
['0.1.0', '0.1.1', '0.1.2', '0.2.0', '0.2.1', '0.2.2']),
github_package('neo-sqlite3', 'vector-of-bool/neo-sqlite3',
['0.2.3', '0.3.0', '0.4.0', '0.4.1']),
github_package('neo-fun', 'vector-of-bool/neo-fun', [

Loading…
Откажи
Сачувај