From 323bd581308896e7e265f08f356f5e0c02ff6ff3 Mon Sep 17 00:00:00 2001
From: Mathieu Parent <mathieu.parent@nantesmetropole.fr>
Date: Thu, 16 May 2013 16:35:53 +0200
Subject: [PATCH 4/6] phppear: Some comments

---
 checks/phppear |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/checks/phppear b/checks/phppear
index eba46c6..667eca0 100644
--- a/checks/phppear
+++ b/checks/phppear
@@ -30,9 +30,9 @@ sub run {
   my ($pkg, $type, $info) = @_;
 
 
+  # PEAR or PECL package
   my $package_xml = $info->index('package.xml');
   my $package2_xml = $info->index('package2.xml');
-  my $channel_xml = $info->index('channel.xml');
   if (defined($package_xml) || defined($package2_xml)) {
     # Checking source builddep
     my $bdepends = $info->relation('build-depends');
@@ -55,6 +55,8 @@ sub run {
       tag 'pear-package-but-missing-dependency', 'Breaks';
     }
   }
+  # PEAR channel
+  my $channel_xml = $info->index('channel.xml');
   if (defined($channel_xml)) {
     my $bdepends = $info->binary_relation('build-depends');
     if (!$bdepends->implies('pkg-php-tools')) {
-- 
1.7.10.4

