Merge branch 'master' of git://github.com/s3tools/s3cmd
fixes: 's3cmd info' doesn't use base_host in output.
s3cmd get: delete a files if object_get had failed

's3cmd get' command opens destination files as 'ab' (append+write) before even trying to download. In effect, if the
file doesn't exist, s3cmd creates it.

This patch resolves an unwanted side-effect empty files being left by s3cmd after an error.
(e.g. file not found, no permission.)

Should only delete files that s3cmd created.

Signed-off-by: Oren Held <oren@held.org.il>
Merge pull request #98 from orenhe/master

Prevent 's3cmd get' from leaving dangling empty files on failure
Merge branch 'merge' of https://github.com/mdomsch/s3cmd

Thanks for all the merge work Matt!
Fix unwanted silencing of S3Error when file_exists

S3Error should always be raised, regardless of the value of file_exists.

Bug reproducible when using get --continue while the target file exists.
The issue was recently introduced by commit 1a051563e.
Thanks @jamiew for noticing the issue.
Fixed typo: paramters -> parameters
Improve symlink-loops detection

Revert 22c60c18c and introduce a better detection
for symlink-loops. For example this is ok:
dir1/
     dir2/
     symdir -> dir2/
While this is a loop:
dir1/
     symdir -> ../dir1/
Improve symlink-loops detection

Cherry-pick cc78fa170:
Revert 22c60c18c and introduce a better detection
for symlink-loops. For example this is ok:
dir1/
     dir2/
     symdir -> dir2/
While this is a loop:
dir1/
     symdir -> ../dir1/
Correct path generation in local_hardlink()

Instead of dir+file use os.path.join(dir,file). The former
leads to an incorrect result if 'dir' doesn't end with '/'
Merge https://github.com/mdomsch/s3cmd into mdomsch-merge
Merge branch 'master' into HEAD
Fixed dst_list cleanup in compare_filelists

We must leave unwanted files in dst_list
Do not hardlink files when in remote->local

We can't hardlink only based on MD5. That would for example make
all empty files hardlinked together.

For now we will just copy locally instead of hardlink.
Minor output text and variable naming changes.
Fix cmd_object_put()

Incorrect check for upload from stdin caused failure
in recursive put uploads
Update test "Sync remote2remote"

Updated test results to reflect server-side copy
Split _fswalk() to _fswalk_{no,follow}_symlinks()

Calling a generator from a generator didn't quite work.
rem_list must be SortedDict()

Don't re-initialise it as {} (plain dict())
Fix whitespace errors

Replace leading <Tab> with 4x<Space>
Remove trailing whitespace