mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-16 04:51:32 +00:00
autopkgtest: Fix the date creation and comparison for time_t hack
This commit is contained in:
parent
50d59b67db
commit
57710ee6e2
@ -19,7 +19,7 @@
|
|||||||
import calendar
|
import calendar
|
||||||
import collections
|
import collections
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from datetime import datetime
|
from datetime import datetime, date
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
@ -1133,7 +1133,7 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
qname = 'debci-%s-%s' % (self.options.series, arch)
|
qname = 'debci-%s-%s' % (self.options.series, arch)
|
||||||
# FIXME: Remove after the time_t transition
|
# FIXME: Remove after the time_t transition
|
||||||
if (arch == "armhf" and self.options.series == "noble" and
|
if (arch == "armhf" and self.options.series == "noble" and
|
||||||
datetime.utcnow() < datetime.date(2024, 4, 4)):
|
datetime.utcnow().date() < date(2024, 4, 4)):
|
||||||
params["all-proposed"] = "1"
|
params["all-proposed"] = "1"
|
||||||
params['submit-time'] = datetime.strftime(datetime.utcnow(), '%Y-%m-%d %H:%M:%S%z')
|
params['submit-time'] = datetime.strftime(datetime.utcnow(), '%Y-%m-%d %H:%M:%S%z')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user