Changeset 484
- Timestamp:
- 05/27/08 08:31:09
(8 months ago)
- Author:
- pebenito
- Message:
use absolute paths.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r436 |
r484 |
|
| 4 | 4 | def checksum(path): |
|---|
| 5 | 5 | path = os.path.realpath(os.path.expanduser(path)) |
|---|
| 6 | | proc = subprocess.Popen(['md5sum', path], stdout=subprocess.PIPE) |
|---|
| | 6 | proc = subprocess.Popen(['/usr/bin/md5sum', path], stdout=subprocess.PIPE) |
|---|
| 7 | 7 | proc.wait() |
|---|
| 8 | 8 | sum = proc.stdout.read().split()[0] |
|---|
| r470 |
r484 |
|
| 22 | 22 | to send. dest_path is the location on the remote server for the file.''' |
|---|
| 23 | 23 | for (filename, basename) in file_list: |
|---|
| 24 | | cmd = "scp " + filename + " " + host + ":" + os.path.join(dest_path, basename) |
|---|
| | 24 | cmd = "/usr/bin/scp " + filename + " " + host + ":" + os.path.join(dest_path, basename) |
|---|
| 25 | 25 | os.system(cmd) |
|---|
| 26 | 26 | |
|---|
| … | … | |
| 309 | 309 | for file in update_list: |
|---|
| 310 | 310 | n.set_file_status(storage.get_local_name(file), storage.get_layer(file), storage.get_timestamp(file)) |
|---|
| 311 | | proc = subprocess.Popen(['md5sum', file], stdout=subprocess.PIPE) |
|---|
| | 311 | proc = subprocess.Popen(['/usr/bin/md5sum', file], stdout=subprocess.PIPE) |
|---|
| 312 | 312 | proc.wait() |
|---|
| 313 | 313 | sum = proc.stdout.read().split()[0] |
|---|
Download in other formats:
* Generating other formats may take time.