aboutsummaryrefslogtreecommitdiff
path: root/src/etc/snapshot.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/snapshot.py')
-rw-r--r--src/etc/snapshot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py
index 8eaa3791..35bbc3ef 100644
--- a/src/etc/snapshot.py
+++ b/src/etc/snapshot.py
@@ -102,7 +102,7 @@ def hash_file(x):
return scrub(h.hexdigest())
-def make_snapshot():
+def make_snapshot(stage):
kernel = get_kernel()
platform = get_platform()
rev = local_rev_short_sha()
@@ -112,7 +112,7 @@ def make_snapshot():
tar = tarfile.open(file0, "w:bz2")
for name in snapshot_files[kernel]:
- tar.add(os.path.join("stage2", name),
+ tar.add(os.path.join(stage, name),
"rust-stage0/" + name)
tar.close()