protected function _savePackage($path)
    {
        $fileName = $this->getReleaseFilename();
        if (is_null($this->_writer)) {
            $this->_writer = new Mage_Connect_Package_Writer($this->getContents(), $path.$fileName);
        }
        $this->_writer
            ->composePackage()
            ->addPackageXml($this->getPackageXml())
            ->archivePackage();
        return $this;
    }
protected function _savePackage($path)
    {
        $fileName = $this->getReleaseFilename();
        if (is_null($this->_writer)) {
            $this->_writer = new Mage_Connect_Package_Writer($this->getContents(), $path.$fileName);
        }
        $this->_writer
            ->composePackage()
            ->addPackageXml($this->getPackageXml())
            ->archivePackage();
        return $this;
    }
protected function _savePackage ( $ path ) { $ fileName = $ this -> getReleaseFilename ( ) ; if ( is_null ( $ this -> _writer ) ) { $ this -> _writer = new Mage_Connect_Package_Writer ( $ this -> getContents ( ) , $ path . $ fileName ) ; } $ this -> _writer -> composePackage ( ) -> addPackageXml ( $ this -> getPackageXml ( ) ) -> archivePackage ( ) ; return $ this ; }
Creates a package archive and saves it to specified path

@param string $path
@return Mage_Connect_Package
Creates a package archive and saves it to specified path