The following commit has been merged in the master branch:
commit a57326961af844c8156252eca5e1bb3d856e823f
Author: Mathieu Parent <[email protected]>
Date: Mon Jun 24 16:46:14 2013 +0200
Test for composer package
Signed-off-by: Niels Thykier <[email protected]>
diff --git a/checks/phppear.desc b/checks/phppear.desc
index 47cef38..e8e800e 100644
--- a/checks/phppear.desc
+++ b/checks/phppear.desc
@@ -13,7 +13,7 @@ Info: The package contains an package.xml or package2.xml
file but doesn't
build-depend on pkg-php-tools.
.
pkg-php-tools is the recommended tool for building PEAR and PECL packages. For
- more information, install it and read the included README.Debian.
+ more information, install it and read the included README.PEAR.
Tag: pear-channel-without-pkg-php-tools-builddep
Severity: normal
@@ -22,7 +22,7 @@ Info: The package contains an channel.xml file but doesn't
build-depend on
pkg-php-tools.
.
pkg-php-tools is the recommended tool for building PEAR and PECL packages. For
- more information, install it and read the included README.Debian.
+ more information, install it and read the included README.PEAR.
Tag: pear-package-but-missing-dependency
Severity: normal
@@ -34,3 +34,12 @@ Tag: pear-package-feature-requires-newer-pkg-php-tools
Severity: normal
Certainty: possible
Info: The package requires a newer pkg-php-tools for a specific feature.
+
+Tag: composer-package-without-pkg-php-tools-builddep
+Severity: normal
+Certainty: possible
+Info: The package contains an composer.json file but doesn't build-depend on
+ pkg-php-tools.
+ .
+ pkg-php-tools is the recommended tool for building PHP Composer packages. For
+ more information, install it and read the included README.Composer.
diff --git a/checks/phppear.pm b/checks/phppear.pm
index 1bbb079..995da81 100644
--- a/checks/phppear.pm
+++ b/checks/phppear.pm
@@ -105,6 +105,16 @@ sub run {
'(>= 1.3~)', 'for PEAR channels support';
}
}
+ # Composer package
+ my $composer_json = $info->index('composer.json');
+ if (!defined($package_xml) && !defined($package2_xml) &&
defined($composer_json)) {
+ if (!$bdepends->implies('pkg-php-tools')) {
+ tag 'composer-package-without-pkg-php-tools-builddep';
+ } elsif (!$bdepends->implies('pkg-php-tools (>= 1.7~)')) {
+ tag 'pear-package-feature-requires-newer-pkg-php-tools',
+ '(>= 1.7~)', 'for Composer package support';
+ }
+ }
return;
}
--
Debian package checker
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]