Lines Matching refs:source_material
144 def unarchive(host, source_material): argument
165 if (source_material.endswith(".gz") or
166 source_material.endswith(".gzip")):
167 host.run('gunzip "%s"' % (utils.sh_escape(source_material)))
168 source_material= ".".join(source_material.split(".")[:-1])
169 elif source_material.endswith("bz2"):
170 host.run('bunzip2 "%s"' % (utils.sh_escape(source_material)))
171 source_material= ".".join(source_material.split(".")[:-1])
174 if source_material.endswith(".tar"):
176 utils.sh_escape(os.path.dirname(source_material)),
177 utils.sh_escape(source_material),))
178 source_material= os.path.join(os.path.dirname(source_material),
181 return source_material