diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-13 14:00:54 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-13 14:00:54 +0100 |
commit | c26f4f8a6923f5a83858a90ac928d986000fb1c5 (patch) | |
tree | c973787a6293484b0b01362dd3aced47cc0d4280 /portato/gui/dialogs.py | |
parent | bac4fa07e289f56503a0962a034edc16d26dafb9 (diff) | |
download | portato-c26f4f8a6923f5a83858a90ac928d986000fb1c5.tar.gz portato-c26f4f8a6923f5a83858a90ac928d986000fb1c5.tar.bz2 portato-c26f4f8a6923f5a83858a90ac928d986000fb1c5.zip |
Additional sabayon message for missing portage tree
Diffstat (limited to 'portato/gui/dialogs.py')
-rw-r--r-- | portato/gui/dialogs.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/portato/gui/dialogs.py b/portato/gui/dialogs.py index edf34b7..ee65884 100644 --- a/portato/gui/dialogs.py +++ b/portato/gui/dialogs.py @@ -11,7 +11,7 @@ # Written by René 'Necoro' Neumann <necoro@necoro.net> import gtk -from ..helper import error +from ..helper import error, get_runsystem def mail_failure_dialog(e): dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, _("Mail could not be sent")) @@ -109,7 +109,12 @@ def file_chooser_dialog (title, parent): def prereq_error_dialog (e): dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, _("A prerequisite for starting Portato was not matched.")) - dialog.format_secondary_text(e.message) + + msg = e.message + if get_runsystem()[0] == "Sabayon": + msg.append("\n"+_("Note that on fresh Sabayon installs or its LiveDVD/-CD, there is no portage tree existing per default. Please run 'emerge --sync'.")) + + dialog.format_secondary_text(msg) ret = dialog.run() dialog.destroy() return ret |