diff options
author | Martin Abente <martin.abente.lahaye@gmail.com> | 2011-03-31 20:17:53 (GMT) |
---|---|---|
committer | Martin Abente <martin.abente.lahaye@gmail.com> | 2011-03-31 20:17:53 (GMT) |
commit | efa7b809a01eb18e9726197ef026abb4b4312670 (patch) | |
tree | 174229b2c261803b4742eb0c09dcd67495127216 | |
parent | 76651319e09d88cbae2f18b8a8e917f42711bf5f (diff) |
Specify compression method
-rwxr-xr-x | reports_mailer.py | 2 | ||||
-rw-r--r-- | sugar-fbserver.spec | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/reports_mailer.py b/reports_mailer.py index 19edbb9..68774e2 100755 --- a/reports_mailer.py +++ b/reports_mailer.py @@ -86,7 +86,7 @@ def compress_directory(report_path, report_name): continue zip_log_path = os.path.join(report_name, log_file) - zip_file.write(log_path, zip_log_path) + zip_file.write(log_path, zip_log_path, zipfile.ZIP_DEFLATED) zip_file.close() temp_file.seek(0) diff --git a/sugar-fbserver.spec b/sugar-fbserver.spec index ae4816f..d4c7add 100644 --- a/sugar-fbserver.spec +++ b/sugar-fbserver.spec @@ -1,6 +1,6 @@ Name: sugar-fbserver Version: 0.2 -Release: 7 +Release: 8 Vendor: Activity Central Summary: Sugar debugging feedback server Group: Applications/Internet @@ -63,6 +63,7 @@ chkconfig --level 345 fbserverd off - Zip mailer reports. - Only one instance of mailer at once. - Save report file at last. +- Specify compression method. * Mon Mar 28 2011 Martin Abente. <martin.abente.lahaye@gmail.com> - Add report name to mail body. |