lib/magento/Package.php
public function setDependencyPackages($packages, $clear = false)
    {
        if($clear) {
            unset($this->_packageXml->dependencies->required->package);
        }

        foreach($packages as $_package) {

            $filesArrayCondition = isset($_package['files']) && is_array($_package['files']);
            $filesArray = $filesArrayCondition ? $_package['files'] : array();

            $this->addDependencyPackage(
                $_package['name'],
                $_package['channel'],
                $_package['min_version'],
                $_package['max_version'],
                $filesArray
            );
        }
        return $this;
    }
public function setDependencyPackages($packages, $clear = false)
    {
        if($clear) {
            unset($this->_packageXml->dependencies->required->package);
        }

        foreach($packages as $_package) {

            $filesArrayCondition = isset($_package['files']) && is_array($_package['files']);
            $filesArray = $filesArrayCondition ? $_package['files'] : array();

            $this->addDependencyPackage(
                $_package['name'],
                $_package['channel'],
                $_package['min_version'],
                $_package['max_version'],
                $filesArray
            );
        }
        return $this;
    }
public function setDependencyPackages ( $ packages , $ clear = false ) { if ( $ clear ) { unset ( $ this -> _packageXml -> dependencies -> required -> package ) ; } foreach ( $ packages as $ _package ) { $ filesArrayCondition = isset ( $ _package [ 'files' ] ) && is_array ( $ _package [ 'files' ] ) ; $ filesArray = $ filesArrayCondition ? $ _package [ 'files' ] : array ( ) ; $ this -> addDependencyPackage ( $ _package [ 'name' ] , $ _package [ 'channel' ] , $ _package [ 'min_version' ] , $ _package [ 'max_version' ] , $ filesArray ) ; } return $ this ; }
Set dependency from another packages.

$packages should contain:
array(
array('name'=>'test1', 'channel'=>'test1', 'min_version'=>'0.0.1', 'max_version'=>'0.1.0'),
array('name'=>'test2', 'channel'=>'test2', 'min_version'=>'0.0.1', 'max_version'=>'0.1.0'),
)

@param array $packages
@param bool $clear
@return Mage_Connect_Package
Set dependency from another packages .