implement transfer of type explorers

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/feature_files_export
Nico Schottelius 13 years ago
parent 4d765a7024
commit 97ac276433
  1. 13
      bin/cdist

@ -211,15 +211,20 @@ class Cdist:
def transfer_type_explorers(self, type):
"""Transfer explorers of a type, but only once"""
if self.type_explorers_transferred[type] == 1
if type in self.type_explorers_transferred:
return
else
self.type_explorers_transferred[type] = 1
src = os.path.join(TYPE_DIR, type)
dst = os.path.join(REMOTE_TYPE_DIR, type, "explorer")
base = os.path.join(REMOTE_TYPE_DIR, type)
dst = os.path.join(base, "explorer")
# Ensure the path path exists
self.remote_run_or_fail(["mkdir", "-p", base])
self.transfer_dir(src, dst)
# Do not retransfer
self.type_explorers_transferred[type] = 1
def link_type_to_emulator(self):
"""Link type names to cdist-type-emulator"""
for type in list_types():

Loading…
Cancel
Save