diff options
| author | Graydon Hoare <[email protected]> | 2011-05-03 16:53:36 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-03 16:53:36 -0700 |
| commit | b81897d7e40f2a8b227230e9494c1a6031c846f4 (patch) | |
| tree | 3599a217f91f49e81c55939ac755364793cc5d38 /src | |
| parent | Attempt to use more portable python (diff) | |
| download | rust-b81897d7e40f2a8b227230e9494c1a6031c846f4.tar.xz rust-b81897d7e40f2a8b227230e9494c1a6031c846f4.zip | |
More python portability fixes (for windows).
Diffstat (limited to 'src')
| -rwxr-xr-x | src/etc/get-snapshot.py | 2 | ||||
| -rw-r--r-- | src/etc/snapshot.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/get-snapshot.py b/src/etc/get-snapshot.py index f1a85189..4fce01e1 100755 --- a/src/etc/get-snapshot.py +++ b/src/etc/get-snapshot.py @@ -15,7 +15,7 @@ def unpack_snapshot(snap): tar = tarfile.open(dl_path) kernel = get_kernel() for name in snapshot_files[kernel]: - p = os.path.join("rust-stage0", name) + p = "rust-stage0/" + name fp = os.path.join("stage0", name) print("extracting " + fp) tar.extract(p, download_unpack_base) diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py index 924568ee..8eaa3791 100644 --- a/src/etc/snapshot.py +++ b/src/etc/snapshot.py @@ -113,7 +113,7 @@ def make_snapshot(): 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)) + "rust-stage0/" + name) tar.close() h = hash_file(file0) |