function setArchInstallCondition($pattern, $conflicts = false)
    {
        $r = &$this->_getCurrentRelease();
        if ($r === null) {
            return false;
        }
        $this->_isValid = 0;
        if (isset($r['installconditions']['arch'])) {
            unset($r['installconditions']['arch']);
        }
        $dep = array('pattern' => $pattern);
        if ($conflicts) {
            $dep['conflicts'] = '';
        }
        if ($this->getPackageType() == 'extsrc' || $this->getPackageType() == 'zendextsrc') {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('configureoption', 'binarypackage',
                        'filelist'),
                    'arch' => array()
                ));
        } else {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('filelist'),
                    'arch' => array()
                ));
        }
    }
function setArchInstallCondition($pattern, $conflicts = false)
    {
        $r = &$this->_getCurrentRelease();
        if ($r === null) {
            return false;
        }
        $this->_isValid = 0;
        if (isset($r['installconditions']['arch'])) {
            unset($r['installconditions']['arch']);
        }
        $dep = array('pattern' => $pattern);
        if ($conflicts) {
            $dep['conflicts'] = '';
        }
        if ($this->getPackageType() == 'extsrc' || $this->getPackageType() == 'zendextsrc') {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('configureoption', 'binarypackage',
                        'filelist'),
                    'arch' => array()
                ));
        } else {
            $r = $this->_mergeTag($r, $dep,
                array(
                    'installconditions' => array('filelist'),
                    'arch' => array()
                ));
        }
    }
function setArchInstallCondition ( $ pattern , $ conflicts = false ) { $ r = & $ this -> _getCurrentRelease ( ) ; if ( $ r === null ) { return false ; } $ this -> _isValid = 0 ; if ( isset ( $ r [ 'installconditions' ] [ 'arch' ] ) ) { unset ( $ r [ 'installconditions' ] [ 'arch' ] ) ; } $ dep = array ( 'pattern' => $ pattern ) ; if ( $ conflicts ) { $ dep [ 'conflicts' ] = '' ; } if ( $ this -> getPackageType ( ) == 'extsrc' || $ this -> getPackageType ( ) == 'zendextsrc' ) { $ r = $ this -> _mergeTag ( $ r , $ dep , array ( 'installconditions' => array ( 'configureoption' , 'binarypackage' , 'filelist' ) , 'arch' => array ( ) ) ) ; } else { $ r = $ this -> _mergeTag ( $ r , $ dep , array ( 'installconditions' => array ( 'filelist' ) , 'arch' => array ( ) ) ) ; } }
Set an installation condition based on architecture for the current release set
@param string architecture pattern
@param bool whether this arch is incompatible with the current release
Set an installation condition based on architecture for the current release set