diff options
| author | klutzy <klutzytheklutzy@gmail.com> | 2014-01-08 14:09:48 +0900 |
|---|---|---|
| committer | klutzy <klutzytheklutzy@gmail.com> | 2014-01-23 03:02:40 +0900 |
| commit | 655433e3343ab6f91ef8db9a7ce19345eb0a6a9c (patch) | |
| tree | 826ede771eb68a17b2cca142d0561ccbea235b04 /src/librustpkg/package_source.rs | |
| parent | fa84593fc3098c4631be0887b772f0665b731a31 (diff) | |
| download | rust-655433e3343ab6f91ef8db9a7ce19345eb0a6a9c.tar.gz rust-655433e3343ab6f91ef8db9a7ce19345eb0a6a9c.zip | |
rustpkg::version: Remove enum Version
Currently rustpkg doesn't use SemanticVersion or Tagged, so they are removed. Remaining variants are replaced by `Option<~str>`.
Diffstat (limited to 'src/librustpkg/package_source.rs')
| -rw-r--r-- | src/librustpkg/package_source.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustpkg/package_source.rs b/src/librustpkg/package_source.rs index 651d64aa9d3..fce2f9e4d0c 100644 --- a/src/librustpkg/package_source.rs +++ b/src/librustpkg/package_source.rs @@ -100,7 +100,7 @@ impl PkgSrc { // automatically-checked-out sources go. let mut result = source_workspace.join("src"); result.push(&id.path.dir_path()); - result.push(format!("{}-{}", id.short_name, id.version.to_str())); + result.push(id.short_name_with_version()); to_try.push(result); let mut result = source_workspace.join("src"); result.push(&id.path); @@ -108,7 +108,7 @@ impl PkgSrc { let mut result = build_dir.join("src"); result.push(&id.path.dir_path()); - result.push(format!("{}-{}", id.short_name, id.version.to_str())); + result.push(id.short_name_with_version()); to_try.push(result.clone()); output_names.push(result); let mut other_result = build_dir.join("src"); @@ -287,7 +287,7 @@ impl PkgSrc { // FIXME (#9639): This needs to handle non-utf8 paths let url = format!("https://{}", crateid.path.as_str().unwrap()); debug!("Fetching package: git clone {} {} [version={}]", - url, clone_target.display(), crateid.version.to_str()); + url, clone_target.display(), crateid.get_version()); let mut failed = false; |
