From 3f62110dc0a0f9ee107643419b027a94427a5530 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sun, 5 Jul 2020 14:35:14 -0700 Subject: Fix binary-sizes.py script A while back we removed the nitrocli/ directory in the repository root. Unfortunately, we missed that the binary-sizes.py script relied on the previous directory structure. This change adjusts the script to work with the new structure. --- var/binary-size.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'var') diff --git a/var/binary-size.py b/var/binary-size.py index 3653814..ff1ac6b 100755 --- a/var/binary-size.py +++ b/var/binary-size.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 -B #/*************************************************************************** -# * Copyright (C) 2019 Daniel Mueller (deso@posteo.net) * +# * Copyright (C) 2019-2020 Daniel Mueller (deso@posteo.net) * # * * # * This program is free software: you can redistribute it and/or modify * # * it under the terms of the GNU General Public License as published by * @@ -86,9 +86,8 @@ def resolveCommit(commit): def determineSizeAt(root, rev): """Determine the size of the nitrocli release build binary at the given git revision.""" sha1 = resolveCommit(rev) - with TemporaryDirectory() as d: - cwd = join(d, "nitrocli") - check_call(["git", "clone", root, d]) + with TemporaryDirectory() as cwd: + check_call(["git", "clone", root, cwd]) check_call(["git", "checkout", "--quiet", sha1], cwd=cwd) check_call(["cargo", "build", "--quiet", "--release"], cwd=cwd) -- cgit v1.2.3