<gh_stars>1-10
from ..step import Step
from munch import munchify
from os import path

class BuildKeyring(Step):
    agnostic = True
    messages = munchify({
        'past': 'built keyring',
        'present': 'building keyring'
    })
    requires = [
        'merge_filesystem',
        'merge_iso'
    ]

    def init(self):
        c = self.app.conf
        self.checksum_paths = [
            c.paths.keyring,
            path.join(path.expanduser('~'), '.gnupg/pubring.kbx')
        ]

    def run(self):
        s = self.app.services
        s.gpg.build_keyring()

from ..step import Step
from munch import munchify
from os import path

class BuildKeyring(Step):
    agnostic = True
    messages = munchify({
        'past': 'built keyring',
        'present': 'building keyring'
    })
    requires = [
        'merge_filesystem',
        'merge_iso'
    ]

    def init(self):
        c = self.app.conf
        self.checksum_paths = [
            c.paths.keyring,
            path.join(path.expanduser('~'), '.gnupg/pubring.kbx')
        ]

    def run(self):
        s = self.app.services
        s.gpg.build_keyring()