summaryrefslogtreecommitdiff
path: root/portato/gui/dialogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/dialogs.py')
-rw-r--r--portato/gui/dialogs.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/portato/gui/dialogs.py b/portato/gui/dialogs.py
index 8931535..d7ac41b 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 += "\n\n"+_("<b>Note</b>: On fresh Sabayon installs or its LiveDVD/-CD, there is no portage tree existing per default.\nPlease run <i>emerge --sync &amp;&amp; layman -S</i>.")
+
+ dialog.format_secondary_markup(msg)
ret = dialog.run()
dialog.destroy()
return ret