mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Assume a default fetch strategy.
This commit is contained in:
parent
52d1a59c58
commit
bd5a31b716
2 changed files with 6 additions and 2 deletions
|
@ -8,4 +8,3 @@ disttag = el5
|
|||
|
||||
[tag2]
|
||||
disttag = el5
|
||||
|
||||
|
|
|
@ -47,7 +47,12 @@ class FetchBuilder(ConfigObject, BuilderBase):
|
|||
|
||||
if not config.has_option("builder",
|
||||
"fetch_strategy"):
|
||||
error_out("FetchBuilder requires [builder] fetch_strategy in tito.props.")
|
||||
print("WARNING: no fetch_strategy specified in tito.props"
|
||||
", assuming ArgSourceStrategy.")
|
||||
if not config.has_section("builder"):
|
||||
config.add_section("builder")
|
||||
config.set('builder', 'fetch_strategy',
|
||||
'tito.builder.fetch.ArgSourceStrategy')
|
||||
|
||||
self.build_tag = '%s-%s' % (self.project_name,
|
||||
get_spec_version_and_release(self.start_dir,
|
||||
|
|
Loading…
Add table
Reference in a new issue