~dktrkranz/debomatic/debomatic

« back to all changes in this revision

Viewing changes to Debomatic/modules.py

  • Committer: Luca Falavigna
  • Date: 2013-06-05 13:18:02 UTC
  • mfrom: (1.4.56 debomatic)
  • Revision ID: dktrkranz@debian.org-20130605131802-og6623opcn2cv9mt
StableĀ releaseĀ 0.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Deb-o-Matic
2
2
#
3
3
# Copyright (C) 2008-2009 David Futcher
4
 
# Copyright (C) 2012 Luca Falavigna
 
4
# Copyright (C) 2012-2013 Luca Falavigna
5
5
#
6
6
# Author: David Futcher <bobbo@ubuntu.com>
7
7
#
66
66
                blist_mods = blist_mods.split()
67
67
            else:
68
68
                blist_mods = []
69
 
            for module in set(self.instances).difference(blist_mods):
 
69
            modules = [ i for i in self.instances.keys()
 
70
                       if i not in blist_mods ]
 
71
            modules.sort()
 
72
            for module in modules:
70
73
                try:
71
74
                    exec 'self.instances["%s"].%s(args)' % (module, hook)
72
75
                except AttributeError: