parameters: (name, stage_dir, package_dir)
docstring: Copies the temporary files from the stage_dir to the package_dir.
          Renames them to name.tar and name.zip, respectively, and compresses
          the tarfile with gzip and bzip2.
docstring_summary: Copies the temporary files from the stage_dir to the package_dir.
          Renames them to name.tar and name.zip, respectively, and compresses
          the tarfile with gzip and bzip2.
docstring_tokens: Copies the temporary files from the stage_dir to the package_dir . Renames them to name . tar and name . zip respectively and compresses the tarfile with gzip and bzip2 .
function: def move_packages (name, stage_dir, package_dir):
      """ Copies the temporary files from the stage_dir to the package_dir.
          Renames them to name.tar and name.zip, respectively, and compresses
          the tarfile with gzip and bzip2. """
      import shutil, os
      from os.path import join
  
      print "Storing packages for ", name
  
      # Take care of the zip file
      print "\tZip file..."
      target_file = join (package_dir, name + ".zip")
      shutil.copy (join (stage_dir, "zip-archive.zip"),
                   target_file)
      ex ("md5sum " + target_file + " > " + target_file + ".md5")
  
  
      tar_file = join (stage_dir, "tar-archive.tar")
      target_file = join (package_dir, name + ".tar")
  
      # bzip
      print "\tBzip2 file....."
      shutil.copy (tar_file,
                   target_file)
      ex ("bzip2 " + target_file)
      ex ("md5sum " + target_file + ".bz2 > " + target_file + ".bz2.md5")
  
      print "\tgzip file....."
      shutil.copy (tar_file,
                   target_file)
      ex ("gzip " + target_file)
      ex ("md5sum " + target_file + ".gz > " + target_file + ".gz.md5")
function_tokens: def move_packages ( name , stage_dir , package_dir ) : import shutil , os from os . path import join print "Storing packages for " , name # Take care of the zip file print "\tZip file..." target_file = join ( package_dir , name + ".zip" ) shutil . copy ( join ( stage_dir , "zip-archive.zip" ) , target_file ) ex ( "md5sum " + target_file + " > " + target_file + ".md5" ) tar_file = join ( stage_dir , "tar-archive.tar" ) target_file = join ( package_dir , name + ".tar" ) # bzip print "\tBzip2 file....." shutil . copy ( tar_file , target_file ) ex ( "bzip2 " + target_file ) ex ( "md5sum " + target_file + ".bz2 > " + target_file + ".bz2.md5" ) print "\tgzip file....." shutil . copy ( tar_file , target_file ) ex ( "gzip " + target_file ) ex ( "md5sum " + target_file + ".gz > " + target_file + ".gz.md5" )