From a919a3082d04a24a6aaa13ffcef98bb06307addc Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 3 May 2011 07:23:05 -0700 Subject: More snapshot logic refactoring. --- src/etc/make-snapshot.py | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'src/etc/make-snapshot.py') diff --git a/src/etc/make-snapshot.py b/src/etc/make-snapshot.py index 11209b4c..d02c0948 100755 --- a/src/etc/make-snapshot.py +++ b/src/etc/make-snapshot.py @@ -1,24 +1,4 @@ #!/usr/bin/env python -import shutil, tarfile -from snapshot import * - -kernel = get_kernel() -cpu = get_cpu() -rev = local_rev_short_sha() -date = local_rev_committer_date().split()[0] - -file0 = partial_snapshot_name(date, rev, kernel, cpu) - -tar = tarfile.open(file0, "w:bz2") -for name in snapshot_files[kernel]: - tar.add(os.path.join("stage2", name), - os.path.join("rust-stage0", name)) -tar.close() - -h = hash_file(file0) -file1 = full_snapshot_name(date, rev, kernel, cpu, h) - -shutil.move(file0, file1) - -print(file1) +import snapshot +print(snapshot.make_snapshot()) -- cgit v1.2.3