feat(content): add managed content metadata layout
This commit is contained in:
1 parent
a05b030862
commit
fbf8142ea0
46 files changed
+2404
-166
No files matched your search
+2
-2
@@ -58,7 +58,7 @@ pub async fn handle_import(matches: &ArgMatches) -> CliResult {
|
||||
version.game_versions.first().unwrap_or(&"?".to_string())
|
||||
);
|
||||
|
||||
let tmp_dir = manager.meta_dir.join("tmp");
|
||||
let tmp_dir = crate::storage::MetadataPaths::new(&manager.meta_dir).temporary();
|
||||
std::fs::create_dir_all(&tmp_dir)?;
|
||||
modrinth::download_mrpack(&client, version, &tmp_dir)
|
||||
.await
|
||||
@@ -79,7 +79,7 @@ pub async fn handle_import(matches: &ArgMatches) -> CliResult {
|
||||
version.game_versions.first().unwrap_or(&"?".to_string())
|
||||
);
|
||||
|
||||
let tmp_dir = manager.meta_dir.join("tmp");
|
||||
let tmp_dir = crate::storage::MetadataPaths::new(&manager.meta_dir).temporary();
|
||||
std::fs::create_dir_all(&tmp_dir)?;
|
||||
modrinth::download_mrpack(&client, &version, &tmp_dir)
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user