mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
(landing for joduinn) generate BuildID with up to the second resolution. b=431270, r=ted.mielczarek
This commit is contained in:
parent
aaf41f8ee5
commit
ee58d948b0
@ -50,7 +50,7 @@ sub daysFromBuildID
|
||||
{
|
||||
my ($buildid,) = @_;
|
||||
|
||||
my ($y, $m, $d, $h) = ($buildid =~ /^(\d{4})(\d{2})(\d{2})(\d{2})$/);
|
||||
my ($y, $m, $d, $h) = ($buildid =~ /^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})$/);
|
||||
$d || die("Unrecognized buildid string.");
|
||||
|
||||
my $secondstodays = 60 * 60 * 24;
|
||||
|
@ -12,7 +12,7 @@ o.add_option("--print-buildid", action="store_true", dest="print_buildid")
|
||||
(options, args) = o.parse_args()
|
||||
|
||||
if options.print_buildid:
|
||||
print datetime.now().strftime('%Y%m%d%H')
|
||||
print datetime.now().strftime('%Y%m%d%H%M%S')
|
||||
sys.exit(0)
|
||||
|
||||
if not options.buildid:
|
||||
|
Loading…
Reference in New Issue
Block a user