Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #488 from ethcore/shortversio
Browse files Browse the repository at this point in the history
Remove "unknown" from version string.
  • Loading branch information
debris committed Feb 22, 2016
2 parents aedc65d + e63aba7 commit 38ccc24
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ igd = "0.4.2"
ethcore-devtools = { path = "../devtools" }
libc = "0.2.7"
vergen = "0.1"
target_info = "0.1"

[features]
default = []
Expand Down
1 change: 1 addition & 0 deletions util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ extern crate igd;
extern crate ethcore_devtools as devtools;
extern crate libc;
extern crate rustc_version;
extern crate target_info;
extern crate vergen;

pub mod standard;
Expand Down
3 changes: 2 additions & 1 deletion util/src/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

use std::fs::File;
use common::*;
use target_info::Target;
use rustc_version;

include!(concat!(env!("OUT_DIR"), "/version.rs"));
Expand Down Expand Up @@ -68,5 +69,5 @@ pub fn contents(name: &str) -> Result<Bytes, UtilError> {

/// Get the standard version string for this software.
pub fn version() -> String {
format!("Parity//{}/{}-{}/{}/rustc{}", env!("CARGO_PKG_VERSION"), short_sha(), commit_date(), target(), rustc_version::version())
format!("Parity//{}-{}-{}/{}-{}-{}/rustc{}", env!("CARGO_PKG_VERSION"), short_sha(), commit_date().replace("-", ""), Target::arch(), Target::os(), Target::env(), rustc_version::version())
}

0 comments on commit 38ccc24

Please sign in to comment.