[createrepo] fix 'createrepo_deltas' option

'createrepo_deltas = False' in configuration doesn't work

Signed-off-by: Qixiang Wan <qwan@redhat.com>
This commit is contained in:
Qixiang Wan 2016-06-30 18:25:05 +08:00
parent 11bbbae2ed
commit c32080e7f9
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class CreaterepoPhase(PhaseBase):
except ValueError as exc:
errors = exc.message.split('\n')
if not self.compose.old_composes and 'createrepo_deltas' in self.compose.conf:
if not self.compose.old_composes and self.compose.conf.get('createrepo_deltas', False):
errors.append('Can not generate deltas without old compose')
if errors: