Commit 034efd83 authored by Dmitry Shachnev's avatar Dmitry Shachnev 🐧
Browse files

Do not use faketime at all when asked to not vary time.

Closes: #930592.
parent dbca954a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -357,6 +357,8 @@ def timezone(ctx, build, vary):

@tool_required("faketime")
def faketime(ctx, build, vary):
    if "time" not in ctx.spec:
        return build
    if not vary:
        # fix the time at base_faketime
        faket = ctx.base_faketime