Author: adsb
Date: 2008-11-13 20:14:51 +0000 (Thu, 13 Nov 2008)
New Revision: 1725

Modified:
   trunk/debian/changelog
   trunk/scripts/bts.pl
Log:
bts: Don't attempt to iterate the list of bugs returned by "bts status"
if it's empty, thereby avoiding a "Can't use string ("") as a HASH ref"
error.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-11-13 07:26:09 UTC (rev 1724)
+++ trunk/debian/changelog      2008-11-13 20:14:51 UTC (rev 1725)
@@ -12,6 +12,9 @@
     + Update author email address
 
   [ Adam D. Barratt ]
+  * bts: Don't attempt to iterate the list of bugs returned by "bts status"
+    if it's empty, thereby avoiding a "Can't use string ("") as a HASH ref"
+    error.
   * checkbashisms:
     + Add an updated check for $'' which is much less prone to false
       positives. Thanks Filippo Giunchedi. (Closes: #504292)

Modified: trunk/scripts/bts.pl
===================================================================
--- trunk/scripts/bts.pl        2008-11-13 07:26:09 UTC (rev 1724)
+++ trunk/scripts/bts.pl        2008-11-13 20:14:51 UTC (rev 1725)
@@ -1031,6 +1031,8 @@
        }
     }
     my $bugs = Devscripts::Debbugs::status(@bugs);
+    return if ($bugs eq "");
+ 
     my $first = 1;
     for my $bug (keys %{$bugs}) {
        print "\n" if not $first;



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to