Skip to content

Commit

Permalink
trivial: Resolve some deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Feb 22, 2022
1 parent ed46e7b commit 1b313a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/asgen/backends/debian/debpkgindex.d
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ public:
final bool hasChanges (DataStore dstore, string suite, string section, string arch)
{
import std.json;
import std.datetime : SysTime;

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

std.datetime.SysTime mtime;
std.datetime.SysTime atime;
SysTime mtime;
SysTime atime;
std.file.getTimes (indexFname, atime, mtime);
auto currentTime = mtime.toUnixTime ();

Expand Down

0 comments on commit 1b313a3

Please sign in to comment.