Remove no longer needed hack

This commit is contained in:
Eelco Dolstra 2024-11-08 17:31:35 +01:00
parent ecb418e163
commit d90b56d527

View File

@ -384,11 +384,7 @@ struct TarballInputScheme : CurlInputScheme
input = immutableInput;
}
/* If we got a lastModified and the input is not final and
doesn't have one, then return it. Note that we don't do
this if the input is final for compatibility with old lock
files that didn't include lastModified. */
if (result.lastModified && !_input.isFinal() && !input.attrs.contains("lastModified"))
if (result.lastModified && !input.attrs.contains("lastModified"))
input.attrs.insert_or_assign("lastModified", uint64_t(result.lastModified));
input.attrs.insert_or_assign("narHash",