nix: Add --refresh as an alias for --tarball-ttl 0
(cherry picked from commit e721f99817
)
This commit is contained in:
parent
777e21e596
commit
6b824c78f1
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,11 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
|
||||||
.longName("no-net")
|
.longName("no-net")
|
||||||
.description("disable substituters and consider all previously downloaded files up-to-date")
|
.description("disable substituters and consider all previously downloaded files up-to-date")
|
||||||
.handler([&]() { useNet = false; });
|
.handler([&]() { useNet = false; });
|
||||||
|
|
||||||
|
mkFlag()
|
||||||
|
.longName("refresh")
|
||||||
|
.description("consider all previously downloaded files out-of-date")
|
||||||
|
.handler([&]() { settings.tarballTtl = 0; });
|
||||||
}
|
}
|
||||||
|
|
||||||
void printFlags(std::ostream & out) override
|
void printFlags(std::ostream & out) override
|
||||||
|
|
Loading…
Reference in a new issue