[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.0-32-gc4cb9cf

Sandro Tosi morph at debian.org
Wed Apr 8 22:24:29 UTC 2009


The following commit has been merged in the master branch:
commit c4cb9cffb53cb7329ea4983a2a79f501231daed9
Author: Sandro Tosi <morph at debian.org>
Date:   Thu Apr 9 00:06:58 2009 +0200

    * bin/reportbug
      - check if all the files passed on the CLI are present, if not quitting;
        thanks to Jari Aalto for the report and Carl Chenet for the patch;
        Closes: #445443

diff --git a/bin/reportbug b/bin/reportbug
index 9cac29d..528ece3 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -821,6 +821,12 @@ def main():
         interface = options.interface
 
         iface = '%(interface)s_ui' % vars()
+    if options.attachments:
+        for attachment in options.attachments:
+            if not os.path.exists(os.path.expanduser(attachment)):
+                print 'The file %s does not exist. Exiting.' % attachment
+                sys.exit(1)
+
         try:
             lib_package = __import__('reportbug.ui', fromlist=[iface])
             ui = getattr(lib_package, iface)
diff --git a/debian/changelog b/debian/changelog
index f3f38f9..16bc602 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,10 @@ reportbug (4.1) UNRELEASED; urgency=low
   * reportbug/ui/text_ui.py:
     - exit (with error) in case of locale not available; thanks Nico Schottelius
       for the report and Carl Chenet for the patch; Closes: #512506
+  * bin/reportbug
+    - check if all the files passed on the CLI are present, if not quitting;
+      thanks to Jari Aalto for the report and Carl Chenet for the patch;
+      Closes: #445443
 
   [ Luca Bruno ]
   * bin/reportbug
@@ -47,7 +51,7 @@ reportbug (4.1) UNRELEASED; urgency=low
     - do not try to import newt ui as default ui, since it's removed now; use
       text ui instead
 
- -- Sandro Tosi <morph at debian.org>  Wed, 08 Apr 2009 23:53:28 +0200
+ -- Sandro Tosi <morph at debian.org>  Thu, 09 Apr 2009 00:05:46 +0200
 
 reportbug (4.0) unstable; urgency=low
 

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list