From c62d982edcbe83df7d1460fae470c086061081f0 Mon Sep 17 00:00:00 2001
From: Mathieu Parent <math.parent@gmail.com>
Date: Mon, 27 May 2013 12:13:40 +0200
Subject: [PATCH 6/7] package2.xml requires pkg-php-tools (>= 1.4~)

---
 checks/phppear |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/checks/phppear b/checks/phppear
index b7ba350..956415a 100644
--- a/checks/phppear
+++ b/checks/phppear
@@ -60,6 +60,12 @@ sub run {
           tag 'pear-package-feature-requires-newer-pkg-php-tools', '(>= 1~)', 'for package name overrides'
         }
       }
+      # Checking package2.xml
+      if (defined($package2_xml)) {
+        if (!$bdepends->implies('pkg-php-tools (>= 1.4~)')) {
+          tag 'pear-package-feature-requires-newer-pkg-php-tools', '(>= 1.4~)', 'for package2.xml'
+        }
+      }
     }
   }
   # PEAR channel
-- 
1.7.10.4

