def _update_text(self, tag, name, path_or_blob):
    if (not name):
        self.debug('cannot update text with no name. tag={} name={}'.format(tag, name))
        return
    root = os.path.join(paths.meta_root, tag)
    if (not os.path.isdir(root)):
        r_mkdir(root)
    p = os.path.join(root, name)
    if os.path.isfile(path_or_blob):
        shutil.copyfile(path_or_blob, p)
    else:
        with open(p, 'w') as wfile:
            wfile.write(path_or_blob)
    self.add(p, commit=False)
def _update_text(self, tag, name, path_or_blob):
    if (not name):
        self.debug('cannot update text with no name. tag={} name={}'.format(tag, name))
        return
    root = os.path.join(paths.meta_root, tag)
    if (not os.path.isdir(root)):
        r_mkdir(root)
    p = os.path.join(root, name)
    if os.path.isfile(path_or_blob):
        shutil.copyfile(path_or_blob, p)
    else:
        with open(p, 'w') as wfile:
            wfile.write(path_or_blob)
    self.add(p, commit=False)