[PATCH] add size file warning on bodyfile option

Carl Chenet carl.chenet at ohmytux.com
Tue Apr 21 20:14:34 UTC 2009


---
 bin/reportbug |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/reportbug b/bin/reportbug
index 1738a6f..df86db5 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -927,6 +927,8 @@ class UI(object):
             body = textwrap.fill(self.options.body)
         elif self.options.bodyfile:
             try:
+                if not options.attachsize:
+                    check_attachment_size(os.path.expanduser(attachment))
                 body = open(self.options.bodyfile).read()
             except:
                 efail('Unable to read body from file %s.\n', self.options.bodyfile)
-- 
1.5.4.3


--=-v6/lDtmmnh7wSW7V/VVx--






More information about the Reportbug-maint mailing list