mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 08:35:39 +00:00
[Build] Set revision to 0 outside source control
This ensures that properly built packages take precedence to incorrectly built packages.
This commit is contained in:
parent
db913ca3f4
commit
a24e1edeae
|
@ -114,7 +114,7 @@ namespace Build.UpdateVersion
|
|||
static string RetrieveRevisionNumber(DateTime now)
|
||||
{
|
||||
double timespan = now.Subtract(new DateTime(2010, 1, 1)).TotalDays;
|
||||
string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? RetrieveSeconds(timespan);
|
||||
string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? "0";
|
||||
revision = revision.Trim();
|
||||
return revision;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue