Ignore:
Timestamp:
Apr 26, 2017, 12:23:51 PM (2 years ago)
Author:
mabarracus
Message:

Allow mirrors without 'lists' directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-detect/trunk/fuentes/lliurex-detect.install/usr/bin/lliurex-detect

    r4360 r4448  
    212212    #string = check items
    213213
     214    #need_structure={'pool':[{'main':{'l/lliurex-version-timestamp':('regexp','lliurex-version-timestamp_.*\.deb$')}},'universe','multiverse','preschool','restricted'],
     215    #                'dists':['xenial','xenial-security','xenial-updates'],
     216    #                'lists':[('regexp','.*xenial.*_amd64_Packages$'),('regexp','.*xenial.*_i386_Packages$')]}
     217
    214218    need_structure={'pool':[{'main':{'l/lliurex-version-timestamp':('regexp','lliurex-version-timestamp_.*\.deb$')}},'universe','multiverse','preschool','restricted'],
    215                     'dists':['xenial','xenial-security','xenial-updates'],
    216                     'lists':[('regexp','.*xenial.*_amd64_Packages$'),('regexp','.*xenial.*_i386_Packages$')]}
     219                    'dists':['xenial','xenial-security','xenial-updates']}
    217220
    218221    return os.path.isdir(mirror_location) and check_structure(mirror_location,need_structure)
Note: See TracChangeset for help on using the changeset viewer.