Home | History | Annotate | Download | only in bot

Lines Matching refs:archive

66   parser = optparse.OptionParser(usage='Usage: %prog ARCHIVE OUTPUT')
68 help='Do not remove a prefix from paths in the archive.')
75 archive, output = args
77 if not os.path.exists(archive):
81 if archive.endswith('.zip'):
82 entries = IterateZip(archive)
83 elif archive.endswith('.tar.gz'):
84 entries = IterateTar(archive)
86 raise ValueError(archive)
93 print "Extracting %s to %s" % (archive, output)
104 # Ensure the archive is consistent.