narval plugin: return list of changes files instead of nothing (closes #71032)

authorJulien Cristau <julien.cristau@logilab.fr>
changeset2cac75cc2597
branchdefault
phasepublic
hiddenno
parent revision#eca38cb8cd26 by default, only consider distributions of target repository
child revision#0084dec007ab python-debian renamed the 'debian_bundle' package to 'debian', follow suit
files modified by this revision
narval/ldi.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1310987471 -7200
# Mon Jul 18 13:11:11 2011 +0200
# Node ID 2cac75cc259739fba7a035a13e59312b76916fe6
# Parent eca38cb8cd26ded79983fe3d13c5f95d51de0770
narval plugin: return list of changes files instead of nothing (closes #71032)

diff --git a/narval/ldi.py b/narval/ldi.py
@@ -21,10 +21,11 @@
1  def _get_changes_files(checker, repository, type):
2      result = []
3      for distrib, changesfiles in getattr(checker, 'debian_changes', {}).iteritems():
4          for changesfile in changesfiles:
5              result.append(FilePath(path=changesfile, type=type))
6 +    return result
7 
8 
9  @input('changes-files', 'isinstance(elmt, FilePath)', 'elmt.type == "debian.changes"',
10         use=True, list=True)
11  @output('changes-files', 'isinstance(elmt, FilePath)', 'elmt.type == "debian.changes.uploaded"',