bodhi/masher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f54e6cffcaa424b5a45c3c271e960b777b44dc9c Author: Luke Macken lmacken@redhat.com Date: Fri Aug 13 19:40:31 2010 -0400
Fix a bug when mashing a single repo, without any updates (#462)
diff --git a/bodhi/masher.py b/bodhi/masher.py index 4165d04..be26a79 100644 --- a/bodhi/masher.py +++ b/bodhi/masher.py @@ -168,7 +168,7 @@ class MashTask(Thread): self.id = id self.tag = None self.updates = set() - if isinstance(updates[0], basestring): + if updates and isinstance(updates[0], basestring): updates = map(PackageUpdate.byTitle, updates) for update in updates: if update.status == 'obsolete':