diff --git a/framework/Pear/lib/Horde/Pear/Package/Type/HordeSplit.php b/framework/Pear/lib/Horde/Pear/Package/Type/HordeSplit.php index 095098e3d60..e2ebfaa86b1 100644 --- a/framework/Pear/lib/Horde/Pear/Package/Type/HordeSplit.php +++ b/framework/Pear/lib/Horde/Pear/Package/Type/HordeSplit.php @@ -58,6 +58,39 @@ public function getName() } } + /** + * Return the ignore handler for this package. + * + * @return Horde_Pear_Package_Contents_Ignore The ignore handler. + */ + public function getIgnore() + { + return new Horde_Pear_Package_Contents_Ignore_Composite( + array( + new Horde_Pear_Package_Contents_Ignore_Dot(), + new Horde_Pear_Package_Contents_Ignore_Symlink(), + new Horde_Pear_Package_Contents_Ignore_Patterns( + array( + '/package.xml', + '*~', + 'conf.php', + 'CVS/*', + 'bin/.htaccess', + 'composer.*', + '.horde.yml', + '.git/*' + ), + $this->getRepositoryRoot() + ), + new Horde_Pear_Package_Contents_Ignore_Git( + $this->getGitIgnore(), + $this->getRepositoryRoot() + ), + new Horde_Pear_Package_Contents_Ignore_Composer() + ) + ); + } + /** * Return the contents of the Horde .gitignore file. *