[Collab-qa-commits] r1227 - buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller

goneri at alioth.debian.org goneri at alioth.debian.org
Sun Sep 7 19:17:46 UTC 2008


Author: goneri
Date: 2008-09-07 19:17:45 +0000 (Sun, 07 Sep 2008)
New Revision: 1227

Modified:
   buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm
Log:
pick the first repository as the default one

Modified: buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm
===================================================================
--- buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm	2008-09-07 19:13:29 UTC (rev 1226)
+++ buildstat/trunk/buildstat-server/lib/SvnBuildStat/Controller/Packages.pm	2008-09-07 19:17:45 UTC (rev 1227)
@@ -82,6 +82,10 @@
     $c->stash->{repositorys} = $repositorys;
     $c->stash->{maintainer}->{email} = $email;
 
+    if (!$repository_id && $repositorys->[0]{repository_id}) {
+        $repository_id = $repositorys->[0]{repository_id};
+    }
+
     return unless $repository_id;
     $c->stash->{repository_id} = $repository_id;
 
@@ -204,6 +208,10 @@
     $c->stash->{sourcepackage_name} = $packagename;
     $c->stash->{repositorys} = $repositorys;
 
+    if (!$repository_id && $repositorys->[0]{repository_id}) {
+        $repository_id = $repositorys->[0]{repository_id};
+    }
+
     return unless $repository_id;
 
     $c->stash->{repository_id} = $repository_id;




More information about the Collab-qa-commits mailing list