git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/0.9.8.x@237 830e0280-6d2a-0410-9c65-932aecc39d9d
Michal Ludvig authored on 2008/09/15 13:34:46... | ... |
@@ -1,5 +1,10 @@ |
1 | 1 |
2008-09-15 Michal Ludvig <michal@logix.cz> |
2 | 2 |
|
3 |
+ * Merge from trunk, revision 221: |
|
4 |
+ * s3cmd: Refuse 'sync' together with '--encrypt'. |
|
5 |
+ |
|
6 |
+2008-09-15 Michal Ludvig <michal@logix.cz> |
|
7 |
+ |
|
3 | 8 |
* Merge from trunk, revisions 218, 226, 233, 234: |
4 | 9 |
* s3cmd, S3/S3.py, S3/Config.py: Allow access to upper-case |
5 | 10 |
named buckets again with --use-old-connect-method |
... | ... |
@@ -559,7 +559,14 @@ def cmd_sync_local2remote(src, dst): |
559 | 559 |
for k in attrs: result += "%s:%s/" % (k, attrs[k]) |
560 | 560 |
return { 'x-amz-meta-s3cmd-attrs' : result[:-1] } |
561 | 561 |
|
562 |
- s3 = S3(Config()) |
|
562 |
+ s3 = S3(cfg) |
|
563 |
+ |
|
564 |
+ if cfg.encrypt: |
|
565 |
+ error("S3cmd 'sync' doesn't support GPG encryption, sorry.") |
|
566 |
+ error("Either use unconditional 's3cmd put --recursive'") |
|
567 |
+ error("or disable encryption with --no-encryption parameter.") |
|
568 |
+ sys.exit(1) |
|
569 |
+ |
|
563 | 570 |
|
564 | 571 |
src_uri = S3Uri(src) |
565 | 572 |
dst_uri = S3Uri(dst) |