aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-07-05 14:35:14 -0700
committerDaniel Mueller <deso@posteo.net>2020-07-26 14:42:22 -0700
commit3f62110dc0a0f9ee107643419b027a94427a5530 (patch)
tree640db1b91a50d7068bf22e797fcd21603b9748af
parent6dd0dafdd53b990cfba79529a36352e11fe0385e (diff)
downloadnitrocli-3f62110dc0a0f9ee107643419b027a94427a5530.tar.gz
nitrocli-3f62110dc0a0f9ee107643419b027a94427a5530.tar.bz2
Fix binary-sizes.py scriptdevel
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.
-rwxr-xr-xvar/binary-size.py7
1 files changed, 3 insertions, 4 deletions
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)