original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Creates a package archive and saves it to specified path
  
  @param string $path
  @return Mage_Connect_Package
docstring_tokens: Creates a package archive and saves it to specified path