[sysadmin-bin] ftpadmin: clarify extra data is uncompressed and provide solution



commit 40ca680891e4d56e29652e385168069ae9662f92
Author: Olav Vitters <olav vitters nl>
Date:   Wed Mar 30 19:24:42 2011 +0200

    ftpadmin: clarify extra data is uncompressed and provide solution

 ftpadmin |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ftpadmin b/ftpadmin
index 50d24e9..aaf046f 100755
--- a/ftpadmin
+++ b/ftpadmin
@@ -359,7 +359,7 @@ class TarInfo(BasicInfo):
             test_eof_data = (tar_end_of_file_pos - tar_end_of_data_pos)
             MAX_EXTRA_DATA=10240
             if test_eof_data > MAX_EXTRA_DATA:
-                errors['EXTRA_DATA'] = 'Tarball has too much extra data (expected max %s, found %s)' % (human_size(MAX_EXTRA_DATA), human_size(test_eof_data))
+                errors['EXTRA_DATA'] = 'Too much uncompressed tarball data (expected max %s, found %s); use tar-ustar in AM_INIT_AUTOMAKE!' % (human_size(MAX_EXTRA_DATA), human_size(test_eof_data))
 
             if not isinstance(t.fileobj, self.FORMATS.get(self.format, "")):
                 errors['WRONG_EXT'] = 'Compression used is different than what extension suggests'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]