~longsleep/snapcraft/snapcraft-debs-plugin

« back to all changes in this revision

Viewing changes to snapcraft/plugins/qml.py

  • Committer: Snappy Tarmac
  • Author(s): Sergio Schvezov
  • Date: 2015-10-26 15:25:06 UTC
  • mfrom: (250.2.4 work)
  • Revision ID: snappy_tarmac-20151026152506-7hqsn1kftvqcuncl
Plugins raise exception instead of true/false by sergiusens approved by elopio

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                'etc/xdg/qtchooser/snappy-qt5.conf',
69
69
                ]
70
70
 
71
 
    def build_qt_config(self):
 
71
    def _build_qt_config(self):
72
72
        arch = snapcraft.common.get_arch_triplet()
73
73
        configdir = os.path.join(self.installdir, 'etc', 'xdg', 'qtchooser')
74
74
        os.makedirs(configdir, exist_ok=True)
76
76
        config.write('./usr/lib/{}/qt5/bin\n'.format(arch))
77
77
        config.write('./usr/lib/{}\n'.format(arch))
78
78
        config.close
79
 
        return True
80
79
 
81
80
    def build(self):
82
 
        return self.build_qt_config()
 
81
        self._build_qt_config()
83
82
 
84
83
    def env(self, root):
85
84
        arch = snapcraft.common.get_arch_triplet()