Beispiel #1
0
def upgradeDepends(_context, title, profile, description, import_profile=None,
                   import_steps=[], source='*', destination='*',
                   run_deps=False, purge=False, checker=None, sortkey=0):
    step = UpgradeDepends(title, profile, source, destination, description,
                          import_profile, import_steps, run_deps, purge, checker,
                          sortkey)
    _context.action(
        discriminator=('upgradeDepends', source, destination, import_profile,
                       str(import_steps), checker, sortkey),
        callable=_registerUpgradeStep,
        args=(step,),
        )
Beispiel #2
0
 def upgradeDepends(self, _context, title, description=None, import_profile=None,
                    import_steps=[], run_deps=False, purge=False,
                    checker=None):
     """ nested upgradeDepends directive """
     step = UpgradeDepends(title, self.profile, self.source, self.dest,
                           description, import_profile, import_steps, run_deps,
                           purge, checker, self.sortkey)
     if self.id is None:
         self.id = str(abs(hash('%s%s%s%s' % (title, self.source, self.dest,
                                              self.sortkey))))
     _context.action(
         discriminator=('upgradeDepends', self.source, self.dest, import_profile,
                        str(import_steps), self.sortkey),
         callable=_registerNestedUpgradeStep,
         args=(step, self.id)
         )