Skip to content

Commit

Permalink
conda: fix transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzh committed Mar 6, 2021
1 parent a203f8b commit 6747541
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/conda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ fn parse_index(repo: &str, data: &[u8]) -> Result<Vec<SnapshotMeta>> {
last_modified: None,
checksum_method: value.get("sha256").map(|_| "sha256".to_string()),
checksum: value.get("sha256").map(|x| x.as_str().unwrap().to_owned()),
flags: SnapshotMetaFlag {
force: true,
force_last: true,
},
..Default::default()
};

if let Some(JsonValue::Object(map)) = v.get("packages") {
Expand Down
4 changes: 4 additions & 0 deletions src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ impl SnapshotMeta {
pub fn force(key: String) -> Self {
Self {
key,
flags: SnapshotMetaFlag {
force: true,
force_last: true,
},
..Default::default()
}
}
Expand Down

0 comments on commit 6747541

Please sign in to comment.