| ... | ... |
@@ -834,7 +834,7 @@ def cmd_sync_remote2local(args): |
| 834 | 834 |
except OSError, e: |
| 835 | 835 |
try: |
| 836 | 836 |
dst_stream.close() |
| 837 |
- os.remove(temp_file) |
|
| 837 |
+ os.remove(chkptfname) |
|
| 838 | 838 |
except: pass |
| 839 | 839 |
if e.errno == errno.EEXIST: |
| 840 | 840 |
warning(u"%s exists - not overwriting" % (dst_file)) |
| ... | ... |
@@ -849,14 +849,14 @@ def cmd_sync_remote2local(args): |
| 849 | 849 |
except KeyboardInterrupt: |
| 850 | 850 |
try: |
| 851 | 851 |
dst_stream.close() |
| 852 |
- os.remove(temp_file) |
|
| 852 |
+ os.remove(chkptfname) |
|
| 853 | 853 |
except: pass |
| 854 | 854 |
warning(u"Exiting after keyboard interrupt") |
| 855 | 855 |
return |
| 856 | 856 |
except Exception, e: |
| 857 | 857 |
try: |
| 858 | 858 |
dst_stream.close() |
| 859 |
- os.remove(temp_file) |
|
| 859 |
+ os.remove(chkptfname) |
|
| 860 | 860 |
except: pass |
| 861 | 861 |
error(u"%s: %s" % (file, e)) |
| 862 | 862 |
continue |
| ... | ... |
@@ -865,7 +865,7 @@ def cmd_sync_remote2local(args): |
| 865 | 865 |
# construction :-( |
| 866 | 866 |
try: |
| 867 | 867 |
dst_stream.close() |
| 868 |
- os.remove(temp_file) |
|
| 868 |
+ os.remove(chkptfname) |
|
| 869 | 869 |
except: pass |
| 870 | 870 |
except S3DownloadError, e: |
| 871 | 871 |
error(u"%s: download failed too many times. Skipping that file." % file) |