def urls(args, user_repository=True, postmarketos_mirror=True):
    """
    Get a list of repository URLs, as they are in /etc/apk/repositories.
    """
    ret = []
    if user_repository:
        ret.append('/mnt/pmbootstrap-packages')
    if postmarketos_mirror:
        for mirror in args.mirrors_postmarketos:
            ret.append(mirror)
    directories = ['main', 'community']
    if args.alpine_version == 'edge':
        directories.append('testing')
    for dir in directories:
        ret.append(args.mirror_alpine + args.alpine_version + '/' + dir)
    return ret
