Home | History | Annotate | Download | only in server

Lines Matching full:source_material

138 def unarchive(host, source_material):
141 If the "source_material" is compresses (according to the file
143 are gzip and bzip2. Afterwards, if the source_material is a tar
148 source_material: the path of the archive on the host
159 if (source_material.endswith(".gz") or
160 source_material.endswith(".gzip")):
161 host.run('gunzip "%s"' % (utils.sh_escape(source_material)))
162 source_material= ".".join(source_material.split(".")[:-1])
163 elif source_material.endswith("bz2"):
164 host.run('bunzip2 "%s"' % (utils.sh_escape(source_material)))
165 source_material= ".".join(source_material.split(".")[:-1])
168 if source_material.endswith(".tar"):
170 utils.sh_escape(os.path.dirname(source_material)),
171 utils.sh_escape(source_material),))
172 source_material= os.path.join(os.path.dirname(source_material),
175 return source_material