'Adds package repository located on [url].
:param url: Universal Resource Locator of the repository.'

def add_repo(self, url):

    for section in self.cfgparser.sections():
        for (option, value) in self.cfgparser.items(section):
            if ((option == 'url') and (value == url)):
                return True
    while True:
        section_name = ('software_manager' + '_')
        section_name += utils.generate_random_string(4)
        if (not self.cfgparser.has_section(section_name)):
            break
    self.cfgparser.add_section(section_name)
    self.cfgparser.set(section_name, 'name', 'Autotest    managed    repository')
    self.cfgparser.set(section_name, 'url', url)
    self.cfgparser.set(section_name, 'enabled', 1)
    self.cfgparser.set(section_name, 'gpgcheck', 0)
    self.cfgparser.write(open(self.repo_file_path, 'w'))
