Reportbug was exiting badly when --draft= option is used with a non existing
directory.

I attach a patch fixing the issue.

Regards,
 Gaetano
>From b48cb41ffa0c273d68956a874770b7b3e075e253 Mon Sep 17 00:00:00 2001
From: Gaetano Guerriero <gaetano.guerri...@spacespa.it>
Date: Tue, 1 Mar 2016 11:06:30 +0100
Subject: [PATCH] --draft= with missing directory was failing badly
To: reportbug-maint@lists.alioth.debian.org

---
 bin/reportbug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reportbug b/bin/reportbug
index 9b85860..4bbf57a 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -1059,7 +1059,7 @@ def main():
     if options.draftpath:
         options.draftpath = os.path.expanduser(options.draftpath)
         if not os.path.exists(options.draftpath):
-            print "The directory % does not exist; exiting." % options.draftpath
+            ewrite("The directory %s does not exist; exiting.\n" % options.draftpath)
             sys.exit(1)
 
     if options.mua and not options.template:
-- 
2.7.0

_______________________________________________
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint

Reply via email to