~xnox/ubiquity/fixup-owner-with-remove

« back to all changes in this revision

Viewing changes to espresso/components/yabootinstaller.py

  • Committer: Colin Watson
  • Date: 2006-04-05 13:14:56 UTC
  • Revision ID: colin.watson@canonical.com-20060405131456-53786dee285d816a
* Reorganise component packaging. Instead of having to modify each d-i
  component to produce an espresso-* binary package (in most cases) and
  having to do coordinated uploads of that package and espresso all the
  time, we now include all the relevant d-i source packages in this one
  (under d-i/source/), build them as part of our build process, and
  include all the components in the espresso binary package. 'debian/rules
  update' can be used to do automatic updates of these copied source
  packages. This should ultimately simplify maintenance work as well as
  making it much easier for third parties to make local changes to this
  installer.
* All FilteredCommand implementations for components now belong to
  espresso rather than to the component (because they were quite tightly
  bound to espresso's UI frontends anyway) and will be removed from
  component packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: UTF-8 -*-
 
2
 
 
3
# Copyright (C) 2006 Canonical Ltd.
 
4
# Written by Colin Watson <cjwatson@ubuntu.com>.
 
5
#
 
6
# This program is free software; you can redistribute it and/or modify
 
7
# it under the terms of the GNU General Public License as published by
 
8
# the Free Software Foundation; either version 2 of the License, or
 
9
# (at your option) any later version.
 
10
#
 
11
# This program is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
# GNU General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU General Public License
 
17
# along with this program; if not, write to the Free Software
 
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 
 
20
from espresso.filteredcommand import FilteredCommand
 
21
 
 
22
class YabootInstaller(FilteredCommand):
 
23
    def prepare(self):
 
24
        return (['/usr/lib/espresso/yaboot-installer/yaboot-installer',
 
25
                 '/target'], ['ERROR'])
 
26
 
 
27
    def error(self, priority, question):
 
28
        self.frontend.error_dialog(self.description(question))
 
29
        return super(YabootInstaller, self).error(priority, question)