osclib/origin: provide origin_updatable_initial().
Provides list of origins for a given project that allow initial updates.
This commit is contained in:
parent
7c162b3c7f
commit
6595dd812b
@ -740,6 +740,16 @@ def origin_updatable_map(apiurl, pending=None, include_self=False):
|
|||||||
|
|
||||||
return origins
|
return origins
|
||||||
|
|
||||||
|
def origin_updatable_initial(apiurl, target_project):
|
||||||
|
origins = []
|
||||||
|
|
||||||
|
config = config_load(apiurl, target_project)
|
||||||
|
for origin, values in config_origin_generator(config['origins'], skip_workarounds=True):
|
||||||
|
if origin != '<devel>' and values['automatic_updates_initial']:
|
||||||
|
origins.append(origin)
|
||||||
|
|
||||||
|
return origins
|
||||||
|
|
||||||
class devel_project_simulate_exception(Exception):
|
class devel_project_simulate_exception(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user