'Once a distribution is identified, find the part of the distribution
that has the URL in it that we want to use for automating the Linux
distribution installation, and create a autoinstall_meta variable $tree
that contains this.'

def configure_tree_location(self, distro):

    base = self.rootdir
    if (self.network_root is None):
        dest_link = os.path.join(self.settings.webdir, 'links', distro.name)
        if (not os.path.exists(dest_link)):
            try:
                self.logger.info(('trying    symlink:    %s    ->    %s' % (str(base), str(dest_link))))
                os.symlink(base, dest_link)
            except:
                self.logger.warning(('symlink    creation    failed:    %(base)s,    %(dest)s' % {'base': base, 'dest': dest_link}))
        tree = ('http://@@http_server@@/cblr/links/%s' % distro.name)
        self.set_install_tree(distro, tree)
    else:
        tail = utils.path_tail(self.path, base)
        tree = (self.network_root[:(-1)] + tail)
        self.set_install_tree(distro, tree)
