Skip to content

Commit 1b313a3

Browse files
committed
trivial: Resolve some deprecation warnings
1 parent ed46e7b commit 1b313a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/asgen/backends/debian/debpkgindex.d

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ public:
351351
final bool hasChanges (DataStore dstore, string suite, string section, string arch)
352352
{
353353
import std.json;
354+
import std.datetime : SysTime;
354355

355356
auto indexFname = getIndexFile (suite, section, arch);
356357
// if the file doesn't exit, we will emit a warning later anyway, so we just ignore this here
@@ -361,8 +362,8 @@ public:
361362
if (indexFname in indexChanged)
362363
return indexChanged[indexFname];
363364

364-
std.datetime.SysTime mtime;
365-
std.datetime.SysTime atime;
365+
SysTime mtime;
366+
SysTime atime;
366367
std.file.getTimes (indexFname, atime, mtime);
367368
auto currentTime = mtime.toUnixTime ();
368369

0 commit comments

Comments
 (0)