mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 13:40:41 +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)
|
static string RetrieveRevisionNumber(DateTime now)
|
||||||
{
|
{
|
||||||
double timespan = now.Subtract(new DateTime(2010, 1, 1)).TotalDays;
|
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();
|
revision = revision.Trim();
|
||||||
return revision;
|
return revision;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue