[Debtags-commits] [svn] r1491 - central-database/branches/alioth/webfrontend

Enrico Zini enrico at costa.debian.org
Mon Nov 14 19:06:18 UTC 2005


Author: enrico
Date: Mon Nov 14 19:06:17 2005
New Revision: 1491

Modified:
   central-database/branches/alioth/webfrontend/Engine.pm
Log:
Check for the package to exist in the package database

Modified: central-database/branches/alioth/webfrontend/Engine.pm
==============================================================================
--- central-database/branches/alioth/webfrontend/Engine.pm	(original)
+++ central-database/branches/alioth/webfrontend/Engine.pm	Mon Nov 14 19:06:17 2005
@@ -582,13 +582,10 @@
 	{
 		chop();
 		my ($pkg, $changes) = split(': ', $_);
-		if (not exists $db->{pkgs}{$pkg})
+		if (not exists $packages{$pkg})
 		{
-			if ($pkg !~ /^[a-z0-9][a-z0-9+.-]+$/)
-			{
-				warn "$pkg is not a valid package name at line $.";
-				next;
-			}
+			warn "$pkg is not a valid package at line $.";
+			next;
 		}
 		for my $ch (split(', ', $changes))
 		{



More information about the Debtags-commits mailing list