[Bps-public-commit] r17477 - in Net-Google-Code/trunk: lib/Net/Google/Code

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Dec 31 02:28:12 EST 2008


Author: sunnavy
Date: Wed Dec 31 02:28:10 2008
New Revision: 17477

Modified:
   Net-Google-Code/trunk/   (props changed)
   Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm

Log:
 r18388 at sunnavys-mb:  sunnavy | 2008-12-31 11:21:00 +0800
 tiny fix


Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Ticket.pm	Wed Dec 31 02:28:10 2008
@@ -95,15 +95,14 @@
 # from issue tracking faq:
 # The prefix before the first dash is the key, and the part after it is the value.
             if ( $href =~ /list\?q=label:([^-]+?)-(.+)/ ) {
-                ( $key, $value ) = ( $1, $2 );
+                $self->labels->{$1} = $2;
             }
             elsif ( $href =~ /list\?q=label:([^-]+)$/ ) {
-                $key = $1;
+                $self->labels->{$1} = undef;
             }
             else {
                 warn "can't parse label from $href";
             }
-            $self->labels->{$key} = $value;
         }
     }
 



More information about the Bps-public-commit mailing list