diff options
-rw-r--r-- | i18n/de.po | 1151 | ||||
-rw-r--r-- | i18n/messages.pot | 925 | ||||
-rw-r--r-- | portato/db/__init__.py | 25 | ||||
-rw-r--r-- | portato/db/database.py | 89 | ||||
-rw-r--r-- | portato/db/dict.py | 141 | ||||
-rw-r--r-- | portato/db/sql.py | 219 | ||||
-rw-r--r-- | portato/gui/templates/AboutWindow.glade | 2 | ||||
-rw-r--r-- | portato/gui/utils.py | 428 | ||||
-rw-r--r-- | portato/gui/windows/main.py | 3 |
9 files changed, 1532 insertions, 1451 deletions
@@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: Portato\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-12-11 14:03+0100\n" -"PO-Revision-Date: 2008-12-11 14:05+0100\n" +"POT-Creation-Date: 2009-01-28 00:59+0100\n" +"PO-Revision-Date: 2009-01-28 01:00+0100\n" "Last-Translator: René 'Necoro' Neumann <necoro@necoro.net>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -13,290 +13,21 @@ msgstr "" "X-Poedit-Country: GERMANY\n" "X-Poedit-SourceCharset: utf-8\n" -#: portato/gui/templates/AboutWindow.glade:8 -msgid "About Portato" -msgstr "Portato" - -#: portato/gui/templates/AboutWindow.glade:18 -msgid "" -"This software is licensed under the terms of the GPLv2.\n" -"Copyright (C) 2006-2008 René 'Necoro' Neumann <necoro@necoro.net>" -msgstr "" -"This software is licensed under the terms of the GPLv2.\n" -"Copyright (C) 2006-2008 René 'Necoro' Neumann <necoro@necoro.net>" - -#: portato/gui/templates/MainWindow.glade:20 -msgid "_File" -msgstr "_Datei" - -#: portato/gui/templates/MainWindow.glade:28 -msgid "_Preferences" -msgstr "_Einstellungen" - -#: portato/gui/templates/MainWindow.glade:46 -msgid "Re_load Portage" -msgstr "Aktua_lisiere Portage-Cache" - -#: portato/gui/templates/MainWindow.glade:70 -#: portato/gui/templates/popups.glade:37 -msgid "gtk-quit" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:83 -msgid "_Emerge" -msgstr "_Emerge" - -#: portato/gui/templates/MainWindow.glade:91 -msgid "_Install" -msgstr "_Installieren" - -#: portato/gui/templates/MainWindow.glade:107 -msgid "_Uninstall" -msgstr "_Deinstallieren" - -#: portato/gui/templates/MainWindow.glade:123 -#: portato/gui/templates/MainWindow.glade:1082 -msgid "Update _World" -msgstr "Update _World" - -#: portato/gui/templates/MainWindow.glade:132 -msgid "Show Updatable P_ackages" -msgstr "Zeige Pakete mit _Updates" - -#: portato/gui/templates/MainWindow.glade:141 -msgid "Show _Only Installed Packages" -msgstr "_Zeige nur installierte Pakete" - -#: portato/gui/templates/MainWindow.glade:155 -msgid "_Sync" -msgstr "_Sync" - -#: portato/gui/templates/MainWindow.glade:171 -msgid "Save _Flags" -msgstr "Speichere _Flags" - +#: portato/gui/templates/popups.glade:12 #: portato/gui/templates/MainWindow.glade:192 #: portato/gui/templates/MainWindow.glade:265 -#: portato/gui/templates/popups.glade:12 msgid "Emerge _Paused" msgstr "Emerge _angehalten" +#: portato/gui/templates/popups.glade:19 #: portato/gui/templates/MainWindow.glade:200 #: portato/gui/templates/MainWindow.glade:247 -#: portato/gui/templates/popups.glade:19 msgid "_Kill Emerge" msgstr "_Kill Emerge" -#: portato/gui/templates/MainWindow.glade:223 -#: portato/gui/templates/MainWindow.glade:1192 -#: portato/gui/windows/main.py:1288 -#: portato/gui/windows/main.py:1290 -msgid "Console" -msgstr "Konsole" - -#: portato/gui/templates/MainWindow.glade:230 -msgid "_Copy" -msgstr "_Kopieren" - -#: portato/gui/templates/MainWindow.glade:276 -msgid "Plu_gins" -msgstr "Plu_gins" - -#: portato/gui/templates/MainWindow.glade:288 -msgid "_?" -msgstr "_?" - -#: portato/gui/templates/MainWindow.glade:296 -msgid "_About" -msgstr "_Über" - -#: portato/gui/templates/MainWindow.glade:314 -msgid "_Plugins" -msgstr "_Plugins" - -#: portato/gui/templates/MainWindow.glade:356 -msgid "gtk-delete" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:370 -msgid "gtk-find" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:484 -#: portato/gui/templates/MainWindow.glade:603 -#: portato/gui/templates/MainWindow.glade:716 -#: portato/gui/templates/MainWindow.glade:731 -#: portato/gui/templates/PluginWindow.glade:98 -#: portato/gui/templates/PluginWindow.glade:123 -msgid "label" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:495 -msgid "Install onto system" -msgstr "Füge zum System hinzu" - -#: portato/gui/templates/MainWindow.glade:518 -msgid "Uninstall from system" -msgstr "Lösche vom System" - -#: portato/gui/templates/MainWindow.glade:541 -msgid "Revert changes" -msgstr "Änderungen rückgängig machen" - -#: portato/gui/templates/MainWindow.glade:619 -msgid "<b>License:</b>" -msgstr "<b>Lizenz:</b>" - -#: portato/gui/templates/MainWindow.glade:636 -msgid "<b>Installed, but not in portage anymore</b>" -msgstr "<b>Installiert, aber nicht mehr im Portage-Tree vorhanden</b>" - -#: portato/gui/templates/MainWindow.glade:651 -msgid "<span foreground='red'><b>MISSING KEYWORD</b></span>" -msgstr "<span foreground='red'><b>FEHLENDES KEYWORD</b></span>" - -#: portato/gui/templates/MainWindow.glade:683 -msgid "<b>Description:</b>" -msgstr "<b>Beschreibung:</b>" - -#: portato/gui/templates/MainWindow.glade:699 -msgid "<b>Overlay:</b>" -msgstr "<b>Overlay:</b>" - -#: portato/gui/templates/MainWindow.glade:747 -msgid "<b>Homepage:</b>" -msgstr "<b>Homepage:</b>" - -#: portato/gui/templates/MainWindow.glade:765 -#: portato/gui/windows/main.py:940 -msgid "Installed" -msgstr "Installiert" - -#: portato/gui/templates/MainWindow.glade:784 -#: portato/gui/windows/main.py:257 -#: portato/gui/windows/main.py:260 -#: portato/gui/windows/main.py:263 -#: portato/gui/windows/main.py:362 -#: portato/gui/windows/main.py:366 -#: portato/gui/windows/main.py:373 -#: portato/gui/windows/main.py:377 -msgid "Masked" -msgstr "Masked" - -#: portato/gui/templates/MainWindow.glade:817 -#: portato/gui/windows/main.py:274 -#: portato/gui/windows/main.py:277 -#: portato/gui/windows/main.py:335 -#: portato/gui/windows/main.py:339 -msgid "Testing" -msgstr "Testing" - -#: portato/gui/templates/MainWindow.glade:836 -msgid "<b>Use Flags:</b>" -msgstr "<b>Use Flags:</b>" - -#: portato/gui/templates/MainWindow.glade:875 -#: portato/gui/templates/PreferenceWindow.glade:488 -msgid "General" -msgstr "Allgemein" - -#: portato/gui/templates/MainWindow.glade:901 -msgid "Use List" -msgstr "Use-Flag-Liste" - -#: portato/gui/templates/MainWindow.glade:928 -msgid "Dependencies" -msgstr "Abhängigkeiten" - -#: portato/gui/templates/MainWindow.glade:955 -msgid "Ebuild" -msgstr "Ebuild" - -#: portato/gui/templates/MainWindow.glade:982 -msgid "Changelog" -msgstr "Changelog" - -#: portato/gui/templates/MainWindow.glade:1009 -msgid "Files" -msgstr "Dateien" - -#: portato/gui/templates/MainWindow.glade:1047 -msgid "Execute the current selected queue" -msgstr "Führe die aktuell gewählte Queue aus" - -#: portato/gui/templates/MainWindow.glade:1066 -msgid "E_xecute" -msgstr "_Ausführen" - -#: portato/gui/templates/MainWindow.glade:1081 -msgid "Calculate the packages which will be installed during an \"update world\"" -msgstr "Berechnet die Pakete, welche während eines \"update world\" installiert werden würden" - -#: portato/gui/templates/MainWindow.glade:1094 -msgid "Remove the selected package from the queue" -msgstr "Löscht das gewählte Paket aus der Queue" - -#: portato/gui/templates/MainWindow.glade:1095 -msgid "_Remove" -msgstr "_Löschen" - -#: portato/gui/templates/MainWindow.glade:1167 -#: portato/gui/windows/main.py:633 -msgid "Queue" -msgstr "Queue" - -#: portato/gui/templates/MainWindow.glade:1227 -msgid "Log" -msgstr "Log" - -#: portato/gui/templates/PluginWindow.glade:8 -msgid "Plugins" -msgstr "Plugins" - -#: portato/gui/templates/PluginWindow.glade:52 -msgid "_Install dependencies" -msgstr "_Installiere Abhängigkeiten" - -#: portato/gui/templates/PluginWindow.glade:81 -msgid "Needed dependencies" -msgstr "Abhängigkeiten" - -#: portato/gui/templates/PluginWindow.glade:109 -msgid "<b>Author:</b>" -msgstr "<b>Autor:</b>" - -#: portato/gui/templates/PluginWindow.glade:144 -#: portato/gui/windows/main.py:939 -#: portato/gui/windows/plugin.py:27 -#: portato/gui/windows/update.py:47 -msgid "Enabled" -msgstr "Aktiviert" - -#: portato/gui/templates/PluginWindow.glade:154 -#: portato/gui/windows/plugin.py:27 -msgid "Temporarily enabled" -msgstr "Aktiviert (temporär)" - -#: portato/gui/templates/PluginWindow.glade:166 -#: portato/gui/windows/plugin.py:27 -msgid "Temporarily disabled" -msgstr "Deaktiviert (temporär)" - -#: portato/gui/templates/PluginWindow.glade:179 -#: portato/gui/windows/plugin.py:27 -msgid "Disabled" -msgstr "Deaktiviert" - -#: portato/gui/templates/PluginWindow.glade:223 -#: portato/gui/templates/SearchWindow.glade:48 -#: portato/gui/templates/MailInfoWindow.glade:170 -#: portato/gui/templates/PreferenceWindow.glade:895 -msgid "gtk-cancel" -msgstr "" - -#: portato/gui/templates/PluginWindow.glade:235 -#: portato/gui/templates/PreferenceWindow.glade:904 -msgid "gtk-apply" +#: portato/gui/templates/popups.glade:37 +#: portato/gui/templates/MainWindow.glade:70 +msgid "gtk-quit" msgstr "" #: portato/gui/templates/UpdateWindow.glade:7 @@ -315,59 +46,9 @@ msgstr "_Alles auswählen" msgid "_Install Selected" msgstr "_Installiere ausgewählte" -#: portato/gui/templates/SearchWindow.glade:8 -msgid "Search Results" -msgstr "Ergebnisse" - -#: portato/gui/templates/SearchWindow.glade:60 -msgid "gtk-jump-to" -msgstr "" - -#: portato/gui/templates/SearchWindow.glade:75 -msgid "gtk-ok" -msgstr "" - -#: portato/gui/templates/MailInfoWindow.glade:6 -msgid "Send Bug Mail ..." -msgstr "Sende Bug-Email ..." - -#: portato/gui/templates/MailInfoWindow.glade:31 -msgid "" -"<b><u>Additional Information</u></b>\n" -"\n" -"(all optional)" -msgstr "" -"<b><u>Zusätzliche Informationen</u></b>\n" -"\n" -"(alle optional)" - -#: portato/gui/templates/MailInfoWindow.glade:75 -msgid "Email address:" -msgstr "Email-Adresse:" - -#: portato/gui/templates/MailInfoWindow.glade:90 -msgid "Name:" -msgstr "Name:" - -#: portato/gui/templates/MailInfoWindow.glade:105 -msgid "" -"Comments /\n" -"what did you do to hit the bug?" -msgstr "" -"Kommentare /\n" -"Vorgehensweise um den Bug zu erzeugen?" - -#: portato/gui/templates/MailInfoWindow.glade:142 -msgid "Attaches the logfile to the mail. This log only contains debug information." -msgstr "Hängt die Logdatei an die Mail an. In der Datei sind nur Debug-Informationen enthalten." - -#: portato/gui/templates/MailInfoWindow.glade:143 -msgid "Attach _Logfile" -msgstr "Hänge _Logdatei an" - -#: portato/gui/templates/MailInfoWindow.glade:198 -msgid "_Send" -msgstr "_Send" +#: portato/gui/templates/AboutWindow.glade:8 +msgid "About Portato" +msgstr "Portato" #: portato/gui/templates/PreferenceWindow.glade:7 msgid "Preferences" @@ -457,6 +138,11 @@ msgstr "<u><i>Masking Keywords</i></u>" msgid "<b>Use Flag and Keyword Options</b>" msgstr "<b>Use-Flag- und Keyword-Optionen</b>" +#: portato/gui/templates/PreferenceWindow.glade:488 +#: portato/gui/templates/MainWindow.glade:875 +msgid "General" +msgstr "Allgemein" + #: portato/gui/templates/PreferenceWindow.glade:527 msgid "Enable systray" msgstr "Aktiviere Systray" @@ -521,234 +207,365 @@ msgstr "<b>Paket Optionen</b>" msgid "Visual" msgstr "Oberfläche" -#: portato.py:43 -msgid "do not fork off as root" -msgstr "erzeuge keinen Root-Prozess" +#: portato/gui/templates/PreferenceWindow.glade:895 +#: portato/gui/templates/PluginWindow.glade:223 +#: portato/gui/templates/SearchWindow.glade:48 +#: portato/gui/templates/MailInfoWindow.glade:170 +msgid "gtk-cancel" +msgstr "" -#: portato.py:43 -msgid "-L is deprecated" -msgstr "-L ist veraltet" +#: portato/gui/templates/PreferenceWindow.glade:904 +#: portato/gui/templates/PluginWindow.glade:235 +msgid "gtk-apply" +msgstr "" -#: portato.py:55 -msgid "Starting Portato" -msgstr "Starte Portato" +#: portato/gui/templates/PluginWindow.glade:8 +msgid "Plugins" +msgstr "Plugins" -#: plugins/etc_proposals.py:32 -msgid "Cannot start etc-proposals. Not root!" -msgstr "Kann etc-proposals nicht starten. Nur root kann das!" +#: portato/gui/templates/PluginWindow.glade:52 +msgid "_Install dependencies" +msgstr "_Installiere Abhängigkeiten" -#: plugins/notify.py:35 -msgid "Notify called while process is still running!" -msgstr "\"Notify\" aufgerufen, während Emerge noch lief." +#: portato/gui/templates/PluginWindow.glade:81 +msgid "Needed dependencies" +msgstr "Abhängigkeiten" -#: plugins/notify.py:39 -msgid "Emerge finished!" -msgstr "Emerge-Prozess erfolgreich beendet!" +#: portato/gui/templates/PluginWindow.glade:98 +#: portato/gui/templates/PluginWindow.glade:123 +#: portato/gui/templates/MainWindow.glade:484 +#: portato/gui/templates/MainWindow.glade:603 +#: portato/gui/templates/MainWindow.glade:716 +#: portato/gui/templates/MainWindow.glade:731 +msgid "label" +msgstr "" -#: plugins/notify.py:43 -msgid "Emerge failed!" -msgstr "Emerge fehlgeschlagen!" +#: portato/gui/templates/PluginWindow.glade:109 +msgid "<b>Author:</b>" +msgstr "<b>Autor:</b>" -#: plugins/notify.py:44 -#, python-format -msgid "Error Code: %d" -msgstr "Fehler-Code: %d" +#: portato/gui/templates/PluginWindow.glade:144 +#: portato/gui/windows/update.py:47 +#: portato/gui/windows/main.py:942 +#: portato/gui/windows/plugin.py:27 +msgid "Enabled" +msgstr "Aktiviert" -#: portato/backend/flags.py:527 -#, python-format -msgid "Conflicting values for masking status: %s" -msgstr "Konflikt beim Masking-Status: %s" +#: portato/gui/templates/PluginWindow.glade:154 +#: portato/gui/windows/plugin.py:27 +msgid "Temporarily enabled" +msgstr "Aktiviert (temporär)" -#: portato/backend/portage/package.py:130 -#, python-format -msgid "BUG in flags.new_masking_status. It returns '%s'" -msgstr "BUG in flags.new_masking_status. Es gibt '%s' zurück." +#: portato/gui/templates/PluginWindow.glade:166 +#: portato/gui/windows/plugin.py:27 +msgid "Temporarily disabled" +msgstr "Deaktiviert (temporär)" -#: portato/backend/portage/system.py:259 -#, python-format -msgid "No best match for %s. It seems not to be in the tree anymore." -msgstr "Es konnte kein bester Treffer für das Paket %s gefunden werden. Es scheint sich nicht mehr im Tree zu befinden." +#: portato/gui/templates/PluginWindow.glade:179 +#: portato/gui/windows/plugin.py:27 +msgid "Disabled" +msgstr "Deaktiviert" -#: portato/backend/portage/system.py:317 -#, python-format -msgid "Found a not installed dependency: %s." -msgstr "Nicht installierte Abhängigkeit gefunden: %s" +#: portato/gui/templates/SearchWindow.glade:8 +msgid "Search Results" +msgstr "Ergebnisse" -#: portato/backend/portage/system.py:359 -#, python-format -msgid "Bug? No best match could be found for '%(package)s'. Needed by: '%(cpv)s'." -msgstr "Es konnte kein bester Treffer für das Paket '%(package)s' ermittelt werden (gebraucht von '%(cpv)s'). Bug?" +#: portato/gui/templates/SearchWindow.glade:60 +msgid "gtk-jump-to" +msgstr "" -#: portato/gui/windows/mailinfo.py:83 -#, python-format -msgid "An error occurred while sending. I think we were greylisted. The error: %s" -msgstr "Während des Sendes trat ein Fehler auf. Wahrscheinlich wurden wir ge-greylistet. Der Fehler: %s" +#: portato/gui/templates/SearchWindow.glade:75 +msgid "gtk-ok" +msgstr "" -#: portato/gui/windows/mailinfo.py:84 -msgid "Retrying after waiting 60 seconds." -msgstr "Wiederhole den Versuch nach einer 60s Pause." +#: portato/gui/templates/MailInfoWindow.glade:6 +msgid "Send Bug Mail ..." +msgstr "Sende Bug-Email ..." -#: portato/gui/windows/main.py:144 -msgid "<no description>" -msgstr "<keine Beschreibung>" +#: portato/gui/templates/MailInfoWindow.glade:31 +msgid "" +"<b><u>Additional Information</u></b>\n" +"\n" +"(all optional)" +msgstr "" +"<b><u>Zusätzliche Informationen</u></b>\n" +"\n" +"(alle optional)" -#: portato/gui/windows/main.py:170 -msgid "The first homepage part does not start with 'http' or 'ftp'." -msgstr "Der erste Teil der Homepage startet nicht mit 'http' oder 'ftp'." +#: portato/gui/templates/MailInfoWindow.glade:75 +msgid "Email address:" +msgstr "Email-Adresse:" -#: portato/gui/windows/main.py:174 -msgid "Blank inside homepage." -msgstr "Leerzeichen innerhalb der Homepage-URL." +#: portato/gui/templates/MailInfoWindow.glade:90 +msgid "Name:" +msgstr "Name:" -#: portato/gui/windows/main.py:213 -#, python-format -msgid "Package could not be found: %s" -msgstr "Paket konnte nicht gefunden werden: %s" +#: portato/gui/templates/MailInfoWindow.glade:105 +msgid "" +"Comments /\n" +"what did you do to hit the bug?" +msgstr "" +"Kommentare /\n" +"Vorgehensweise um den Bug zu erzeugen?" -#: portato/gui/windows/main.py:266 -#: portato/gui/windows/main.py:364 -msgid "Masked by user" -msgstr "Vom Benutzer maskiert" +#: portato/gui/templates/MailInfoWindow.glade:142 +msgid "Attaches the logfile to the mail. This log only contains debug information." +msgstr "Hängt die Logdatei an die Mail an. In der Datei sind nur Debug-Informationen enthalten." -#: portato/gui/windows/main.py:454 -msgid "Loading Config" -msgstr "Lade Konfiguration" +#: portato/gui/templates/MailInfoWindow.glade:143 +msgid "Attach _Logfile" +msgstr "Hänge _Logdatei an" -#: portato/gui/windows/main.py:466 -msgid "Creating Database" -msgstr "Erstelle Datenbank" +#: portato/gui/templates/MailInfoWindow.glade:198 +msgid "_Send" +msgstr "_Send" -#: portato/gui/windows/main.py:470 -msgid "Loading Plugins" -msgstr "Lade Plugins" +#: portato/gui/templates/MainWindow.glade:20 +msgid "_File" +msgstr "_Datei" -#: portato/gui/windows/main.py:483 -msgid "Building frontend" -msgstr "Erstelle Oberfläche" +#: portato/gui/templates/MainWindow.glade:28 +msgid "_Preferences" +msgstr "_Einstellungen" -#: portato/gui/windows/main.py:533 -#: portato/gui/views.py:129 -#, python-format -msgid "Error: %s" -msgstr "Fehler: %s" +#: portato/gui/templates/MainWindow.glade:46 +msgid "Re_load Portage" +msgstr "Aktua_lisiere Portage-Cache" -#: portato/gui/windows/main.py:574 -msgid "Restoring Session" -msgstr "Lade Session" +#: portato/gui/templates/MainWindow.glade:83 +msgid "_Emerge" +msgstr "_Emerge" -#: portato/gui/windows/main.py:584 -msgid "Finishing startup" -msgstr "Erledige letzte Handgriffe :)" +#: portato/gui/templates/MainWindow.glade:91 +msgid "_Install" +msgstr "_Installieren" -#: portato/gui/windows/main.py:636 -msgid "Options" -msgstr "Optionen" +#: portato/gui/templates/MainWindow.glade:107 +msgid "_Uninstall" +msgstr "_Deinstallieren" -#: portato/gui/windows/main.py:652 -msgid "Categories" -msgstr "Kategorien" +#: portato/gui/templates/MainWindow.glade:123 +#: portato/gui/templates/MainWindow.glade:1082 +msgid "Update _World" +msgstr "Update _World" -#: portato/gui/windows/main.py:711 -msgid "Packages" -msgstr "Pakete" +#: portato/gui/templates/MainWindow.glade:132 +msgid "Show Updatable P_ackages" +msgstr "Zeige Pakete mit _Updates" -#: portato/gui/windows/main.py:759 -msgid "Versions" -msgstr "Versionen" +#: portato/gui/templates/MainWindow.glade:141 +msgid "Show _Only Installed Packages" +msgstr "_Zeige nur installierte Pakete" -#: portato/gui/windows/main.py:762 -msgid "Slot" -msgstr "Slot" +#: portato/gui/templates/MainWindow.glade:155 +msgid "_Sync" +msgstr "_Sync" -#: portato/gui/windows/main.py:895 -#, python-format -msgid "If '%s' is disabled" -msgstr "Wenn '%s' deaktiviert ist" +#: portato/gui/templates/MainWindow.glade:171 +msgid "Save _Flags" +msgstr "Speichere _Flags" -#: portato/gui/windows/main.py:897 -#, python-format -msgid "If '%s' is enabled" -msgstr "Wenn '%s' aktiviert ist" +#: portato/gui/templates/MainWindow.glade:223 +#: portato/gui/templates/MainWindow.glade:1192 +#: portato/gui/windows/main.py:1295 +#: portato/gui/windows/main.py:1297 +msgid "Console" +msgstr "Konsole" -#: portato/gui/windows/main.py:903 -msgid "One of the following" -msgstr "Eins der folgenden" +#: portato/gui/templates/MainWindow.glade:230 +msgid "_Copy" +msgstr "_Kopieren" -#: portato/gui/windows/main.py:908 -msgid "All of the following" -msgstr "Alle folgenden" +#: portato/gui/templates/MainWindow.glade:276 +msgid "Plu_gins" +msgstr "Plu_gins" -#: portato/gui/windows/main.py:919 -msgid "Can't display dependencies: This package has an unsupported dependency string." -msgstr "Kann Abhängigkeiten nicht anzeigen: Format der Abhängigkeiten des Pakets wird nicht unterstützt." +#: portato/gui/templates/MainWindow.glade:288 +msgid "_?" +msgstr "_?" -#: portato/gui/windows/main.py:941 -msgid "Flag" -msgstr "Flag" +#: portato/gui/templates/MainWindow.glade:296 +msgid "_About" +msgstr "_Über" -#: portato/gui/windows/main.py:942 -#: portato/gui/windows/preference.py:211 -msgid "Description" -msgstr "Beschreibung" +#: portato/gui/templates/MainWindow.glade:314 +msgid "_Plugins" +msgstr "_Plugins" -#: portato/gui/windows/main.py:965 -msgid "This is an expanded use flag and cannot be selected" -msgstr "Dies ist ein \"Expanded Use Flag\" und kann daher nicht ausgewählt werden." +#: portato/gui/templates/MainWindow.glade:356 +msgid "gtk-delete" +msgstr "" -#: portato/gui/windows/main.py:1003 -#, python-format -msgid "Translating session from version %d to %d." -msgstr "Upgrade Session von Version %d auf Version %d." +#: portato/gui/templates/MainWindow.glade:370 +msgid "gtk-find" +msgstr "" -#: portato/gui/windows/main.py:1006 -#, python-format -msgid "Cannot translate session from version %d to %d." -msgstr "Kann Session nicht von Version %d nach %d upgraden." +#: portato/gui/templates/MainWindow.glade:495 +msgid "Install onto system" +msgstr "Füge zum System hinzu" -#: portato/gui/windows/main.py:1464 -msgid "use flags" -msgstr "Use Flags" +#: portato/gui/templates/MainWindow.glade:518 +msgid "Uninstall from system" +msgstr "Lösche vom System" -#: portato/gui/windows/main.py:1476 -msgid "masking keywords" -msgstr "Masking Keywords" +#: portato/gui/templates/MainWindow.glade:541 +msgid "Revert changes" +msgstr "Änderungen rückgängig machen" -#: portato/gui/windows/preference.py:148 -msgid "Top" -msgstr "Oben" +#: portato/gui/templates/MainWindow.glade:619 +msgid "<b>License:</b>" +msgstr "<b>Lizenz:</b>" -#: portato/gui/windows/preference.py:148 -msgid "Bottom" -msgstr "Unten" +#: portato/gui/templates/MainWindow.glade:636 +msgid "<b>Installed, but not in portage anymore</b>" +msgstr "<b>Installiert, aber nicht mehr im Portage-Tree vorhanden</b>" -#: portato/gui/windows/preference.py:148 -msgid "Left" -msgstr "Links" +#: portato/gui/templates/MainWindow.glade:651 +msgid "<span foreground='red'><b>MISSING KEYWORD</b></span>" +msgstr "<span foreground='red'><b>FEHLENDES KEYWORD</b></span>" -#: portato/gui/windows/preference.py:148 -msgid "Right" -msgstr "Rechts" +#: portato/gui/templates/MainWindow.glade:683 +msgid "<b>Description:</b>" +msgstr "<b>Beschreibung:</b>" -#: portato/gui/windows/preference.py:206 -msgid "Package Set" -msgstr "Paket-Set" +#: portato/gui/templates/MainWindow.glade:699 +msgid "<b>Overlay:</b>" +msgstr "<b>Overlay:</b>" -#: portato/gui/windows/search.py:57 -msgid "Results" -msgstr "Ergebnisse" +#: portato/gui/templates/MainWindow.glade:747 +msgid "<b>Homepage:</b>" +msgstr "<b>Homepage:</b>" -#: portato/gui/windows/splash.py:35 +#: portato/gui/templates/MainWindow.glade:765 +#: portato/gui/windows/main.py:943 +msgid "Installed" +msgstr "Installiert" + +#: portato/gui/templates/MainWindow.glade:784 +#: portato/gui/windows/main.py:258 +#: portato/gui/windows/main.py:261 +#: portato/gui/windows/main.py:264 +#: portato/gui/windows/main.py:363 +#: portato/gui/windows/main.py:367 +#: portato/gui/windows/main.py:374 +#: portato/gui/windows/main.py:378 +msgid "Masked" +msgstr "Masked" + +#: portato/gui/templates/MainWindow.glade:817 +#: portato/gui/windows/main.py:275 +#: portato/gui/windows/main.py:278 +#: portato/gui/windows/main.py:336 +#: portato/gui/windows/main.py:340 +msgid "Testing" +msgstr "Testing" + +#: portato/gui/templates/MainWindow.glade:836 +msgid "<b>Use Flags:</b>" +msgstr "<b>Use Flags:</b>" + +#: portato/gui/templates/MainWindow.glade:901 +msgid "Use List" +msgstr "Use-Flag-Liste" + +#: portato/gui/templates/MainWindow.glade:928 +msgid "Dependencies" +msgstr "Abhängigkeiten" + +#: portato/gui/templates/MainWindow.glade:955 +msgid "Ebuild" +msgstr "Ebuild" + +#: portato/gui/templates/MainWindow.glade:982 +msgid "Changelog" +msgstr "Changelog" + +#: portato/gui/templates/MainWindow.glade:1009 +msgid "Files" +msgstr "Dateien" + +#: portato/gui/templates/MainWindow.glade:1047 +msgid "Execute the current selected queue" +msgstr "Führe die aktuell gewählte Queue aus" + +#: portato/gui/templates/MainWindow.glade:1066 +msgid "E_xecute" +msgstr "_Ausführen" + +#: portato/gui/templates/MainWindow.glade:1081 +msgid "Calculate the packages which will be installed during an \"update world\"" +msgstr "Berechnet die Pakete, welche während eines \"update world\" installiert werden würden" + +#: portato/gui/templates/MainWindow.glade:1094 +msgid "Remove the selected package from the queue" +msgstr "Löscht das gewählte Paket aus der Queue" + +#: portato/gui/templates/MainWindow.glade:1095 +msgid "_Remove" +msgstr "_Löschen" + +#: portato/gui/templates/MainWindow.glade:1167 +#: portato/gui/windows/main.py:636 +msgid "Queue" +msgstr "Queue" + +#: portato/gui/templates/MainWindow.glade:1227 +msgid "Log" +msgstr "Log" + +#: portato.py:38 +msgid "do not fork off as root" +msgstr "erzeuge keinen Root-Prozess" + +#: portato.py:38 +msgid "-L is deprecated" +msgstr "-L ist veraltet" + +#: portato.py:50 +msgid "Starting Portato" +msgstr "Starte Portato" + +#: portato/gui/wrapper.py:59 +msgid "oneshot" +msgstr "oneshot" + +#: portato/gui/wrapper.py:64 #, python-format -msgid "... is starting up: %s" -msgstr "... startet: %s" +msgid "updating from version %s" +msgstr "Update von Version %s" -#: portato/gui/windows/update.py:48 -msgid "Package" -msgstr "Paket" +#: portato/gui/wrapper.py:66 +msgid "updating" +msgstr "Update" -#: portato/gui/__init__.py:20 -msgid "Loading Backend" -msgstr "Lade Backend" +#: portato/gui/wrapper.py:71 +#, python-format +msgid "downgrading from version %s" +msgstr "Downgrade von Version %s" + +#: portato/gui/wrapper.py:73 +msgid "downgrading" +msgstr "Downgrade" + +#: portato/gui/wrapper.py:77 +msgid "IUSE changes:" +msgstr "IUSE Änderungen:" + +#: portato/gui/wrapper.py:95 +msgid "(In Progress)" +msgstr "(In Bearbeitung)" + +#: portato/gui/wrapper.py:120 +msgid "Install" +msgstr "Installieren" + +#: portato/gui/wrapper.py:131 +msgid "Uninstall" +msgstr "Deinstallieren" + +#: portato/gui/wrapper.py:143 +msgid "Update" +msgstr "Update" #: portato/gui/dialogs.py:17 msgid "Mail could not be sent" @@ -826,6 +643,40 @@ msgstr "" msgid "Do you really want to clear the whole queue?" msgstr "Wirklich die gesamte Queue löschen?" +#: portato/gui/dialogs.py:111 +msgid "A prerequisite for starting Portato was not matched." +msgstr "Eine Vorbedingung um Portato zu starten ist nicht erfüllt." + +#: portato/gui/views.py:84 +msgid "Package is not installed" +msgstr "Paket ist nicht installiert" + +#: portato/gui/views.py:101 +#, python-format +msgid "No %(old)s language file installed. Falling back to %(new)s." +msgstr "Keine \"%(old)s\" Syntaxdatei gefunden. Benutze \"%(new)s\"-Syntax." + +#: portato/gui/views.py:110 +#, python-format +msgid "No %(old)s language file installed. Disable highlighting." +msgstr "Keine \"%(old)s\" Syntaxdatei gefunden. Deaktiviere Hervorhebung." + +#: portato/gui/views.py:129 +#: portato/gui/windows/main.py:536 +#, python-format +msgid "Error: %s" +msgstr "Fehler: %s" + +#: portato/gui/updater.py:100 +#, python-format +msgid "No unmasked version of package '%s' found. Trying masked ones. This normally should not happen..." +msgstr "Keine demaskierte Version vom Paket '%s' gefunden. Versuche die maskierten. Eigentlich sollte das nicht passieren..." + +#: portato/gui/updater.py:104 +#, python-format +msgid "Trying to remove package '%s' from queue which does not exist in system." +msgstr "Das Paket '%s' sollte aus der Queue entfernt werden, aber es befindet sich nicht im System." + #: portato/gui/exception_handling.py:31 msgid "A programming error has been detected during the execution of this program." msgstr "Ein Fehler ist aufgetreten." @@ -850,6 +701,179 @@ msgstr "Sende..." msgid "Save traceback..." msgstr "Speichere Traceback..." +#: portato/gui/__init__.py:22 +msgid "Loading Backend" +msgstr "Lade Backend" + +#: portato/gui/windows/search.py:57 +msgid "Results" +msgstr "Ergebnisse" + +#: portato/gui/windows/mailinfo.py:83 +#, python-format +msgid "An error occurred while sending. I think we were greylisted. The error: %s" +msgstr "Während des Sendes trat ein Fehler auf. Wahrscheinlich wurden wir ge-greylistet. Der Fehler: %s" + +#: portato/gui/windows/mailinfo.py:84 +msgid "Retrying after waiting 60 seconds." +msgstr "Wiederhole den Versuch nach einer 60s Pause." + +#: portato/gui/windows/update.py:48 +msgid "Package" +msgstr "Paket" + +#: portato/gui/windows/splash.py:35 +#, python-format +msgid "... is starting up: %s" +msgstr "... startet: %s" + +#: portato/gui/windows/preference.py:148 +msgid "Top" +msgstr "Oben" + +#: portato/gui/windows/preference.py:148 +msgid "Bottom" +msgstr "Unten" + +#: portato/gui/windows/preference.py:148 +msgid "Left" +msgstr "Links" + +#: portato/gui/windows/preference.py:148 +msgid "Right" +msgstr "Rechts" + +#: portato/gui/windows/preference.py:206 +msgid "Package Set" +msgstr "Paket-Set" + +#: portato/gui/windows/preference.py:211 +#: portato/gui/windows/main.py:945 +msgid "Description" +msgstr "Beschreibung" + +#: portato/gui/windows/main.py:145 +msgid "<no description>" +msgstr "<keine Beschreibung>" + +#: portato/gui/windows/main.py:171 +msgid "The first homepage part does not start with 'http' or 'ftp'." +msgstr "Der erste Teil der Homepage startet nicht mit 'http' oder 'ftp'." + +#: portato/gui/windows/main.py:175 +msgid "Blank inside homepage." +msgstr "Leerzeichen innerhalb der Homepage-URL." + +#: portato/gui/windows/main.py:214 +#, python-format +msgid "Package could not be found: %s" +msgstr "Paket konnte nicht gefunden werden: %s" + +#: portato/gui/windows/main.py:267 +#: portato/gui/windows/main.py:365 +msgid "Masked by user" +msgstr "Vom Benutzer maskiert" + +#: portato/gui/windows/main.py:457 +msgid "Loading Config" +msgstr "Lade Konfiguration" + +#: portato/gui/windows/main.py:469 +msgid "Creating Database" +msgstr "Erstelle Datenbank" + +#: portato/gui/windows/main.py:473 +msgid "Loading Plugins" +msgstr "Lade Plugins" + +#: portato/gui/windows/main.py:486 +msgid "Building frontend" +msgstr "Erstelle Oberfläche" + +#: portato/gui/windows/main.py:577 +msgid "Restoring Session" +msgstr "Lade Session" + +#: portato/gui/windows/main.py:587 +msgid "Finishing startup" +msgstr "Erledige letzte Handgriffe :)" + +#: portato/gui/windows/main.py:639 +msgid "Options" +msgstr "Optionen" + +#: portato/gui/windows/main.py:655 +msgid "Categories" +msgstr "Kategorien" + +#: portato/gui/windows/main.py:714 +msgid "Packages" +msgstr "Pakete" + +#: portato/gui/windows/main.py:762 +msgid "Versions" +msgstr "Versionen" + +#: portato/gui/windows/main.py:765 +msgid "Slot" +msgstr "Slot" + +#: portato/gui/windows/main.py:898 +#, python-format +msgid "If '%s' is disabled" +msgstr "Wenn '%s' deaktiviert ist" + +#: portato/gui/windows/main.py:900 +#, python-format +msgid "If '%s' is enabled" +msgstr "Wenn '%s' aktiviert ist" + +#: portato/gui/windows/main.py:906 +msgid "One of the following" +msgstr "Eins der folgenden" + +#: portato/gui/windows/main.py:911 +msgid "All of the following" +msgstr "Alle folgenden" + +#: portato/gui/windows/main.py:922 +msgid "Can't display dependencies: This package has an unsupported dependency string." +msgstr "Kann Abhängigkeiten nicht anzeigen: Format der Abhängigkeiten des Pakets wird nicht unterstützt." + +#: portato/gui/windows/main.py:944 +msgid "Flag" +msgstr "Flag" + +#: portato/gui/windows/main.py:968 +msgid "This is an expanded use flag and cannot be selected" +msgstr "Dies ist ein \"Expanded Use Flag\" und kann daher nicht ausgewählt werden." + +#: portato/gui/windows/main.py:1006 +#, python-format +msgid "Translating session from version %d to %d." +msgstr "Upgrade Session von Version %d auf Version %d." + +#: portato/gui/windows/main.py:1009 +#, python-format +msgid "Cannot translate session from version %d to %d." +msgstr "Kann Session nicht von Version %d nach %d upgraden." + +#: portato/gui/windows/main.py:1471 +msgid "use flags" +msgstr "Use Flags" + +#: portato/gui/windows/main.py:1483 +msgid "masking keywords" +msgstr "Masking Keywords" + +#: portato/gui/windows/main.py:1885 +msgid "The portage tree is not existing." +msgstr "Der Portage-Tree existiert nicht." + +#: portato/gui/windows/main.py:1889 +msgid "The portage tree seems to be empty." +msgstr "Der Portage-Tree scheint leer zu sein." + #: portato/gui/session.py:21 msgid "Version mismatch." msgstr "Versionen stimmen nicht überein." @@ -867,16 +891,6 @@ msgstr "Das aktuelle Sessionformat ist zu alt." msgid "Current session format is newer than this version supports." msgstr "Das aktuelle Sessionformat ist neuer, als diese Portato-Version unterstützt." -#: portato/gui/updater.py:100 -#, python-format -msgid "No unmasked version of package '%s' found. Trying masked ones. This normally should not happen..." -msgstr "Keine demaskierte Version vom Paket '%s' gefunden. Versuche die maskierten. Eigentlich sollte das nicht passieren..." - -#: portato/gui/updater.py:104 -#, python-format -msgid "Trying to remove package '%s' from queue which does not exist in system." -msgstr "Das Paket '%s' sollte aus der Queue entfernt werden, aber es befindet sich nicht im System." - #: portato/gui/utils.py:180 #: portato/gui/utils.py:337 msgid "ALL" @@ -900,75 +914,54 @@ msgstr "Leere Datenbank..." msgid "Populating database..." msgstr "Fülle Datenbank..." -#: portato/gui/views.py:84 -msgid "Package is not installed" -msgstr "Paket ist nicht installiert" - -#: portato/gui/views.py:101 +#: portato/backend/flags.py:527 #, python-format -msgid "No %(old)s language file installed. Falling back to %(new)s." -msgstr "Keine \"%(old)s\" Syntaxdatei gefunden. Benutze \"%(new)s\"-Syntax." +msgid "Conflicting values for masking status: %s" +msgstr "Konflikt beim Masking-Status: %s" -#: portato/gui/views.py:110 +#: portato/backend/portage/system.py:255 #, python-format -msgid "No %(old)s language file installed. Disable highlighting." -msgstr "Keine \"%(old)s\" Syntaxdatei gefunden. Deaktiviere Hervorhebung." - -#: portato/gui/wrapper.py:59 -msgid "oneshot" -msgstr "oneshot" +msgid "No best match for %s. It seems not to be in the tree anymore." +msgstr "Es konnte kein bester Treffer für das Paket %s gefunden werden. Es scheint sich nicht mehr im Tree zu befinden." -#: portato/gui/wrapper.py:64 +#: portato/backend/portage/system.py:313 #, python-format -msgid "updating from version %s" -msgstr "Update von Version %s" - -#: portato/gui/wrapper.py:66 -msgid "updating" -msgstr "Update" +msgid "Found a not installed dependency: %s." +msgstr "Nicht installierte Abhängigkeit gefunden: %s" -#: portato/gui/wrapper.py:71 +#: portato/backend/portage/system.py:355 #, python-format -msgid "downgrading from version %s" -msgstr "Downgrade von Version %s" - -#: portato/gui/wrapper.py:73 -msgid "downgrading" -msgstr "Downgrade" - -#: portato/gui/wrapper.py:77 -msgid "IUSE changes:" -msgstr "IUSE Änderungen:" - -#: portato/gui/wrapper.py:95 -msgid "(In Progress)" -msgstr "(In Bearbeitung)" - -#: portato/gui/wrapper.py:120 -msgid "Install" -msgstr "Installieren" - -#: portato/gui/wrapper.py:131 -msgid "Uninstall" -msgstr "Deinstallieren" - -#: portato/gui/wrapper.py:143 -msgid "Update" -msgstr "Update" +msgid "Bug? No best match could be found for '%(package)s'. Needed by: '%(cpv)s'." +msgstr "Es konnte kein bester Treffer für das Paket '%(package)s' ermittelt werden (gebraucht von '%(cpv)s'). Bug?" -#: portato/config_parser.py:270 +#: portato/backend/portage/package.py:125 #, python-format -msgid "Unrecognized line in configuration: %s" -msgstr "Unbekannte Zeile in Konfiguration: %s" +msgid "BUG in flags.new_masking_status. It returns '%s'" +msgstr "BUG in flags.new_masking_status. Es gibt '%s' zurück." #: portato/helper.py:76 msgid "Invalid dependency string" msgstr "Ungültiger Dependency-String." +#: portato/session.py:63 +#, python-format +msgid "Loading '%s' session from '%s'." +msgstr "Lade '%s'-Session von '%s'." + +#: portato/session.py:65 +#, python-format +msgid "Loading session from '%s'." +msgstr "Lade Session von '%s'." + #: portato/plistener.py:94 msgid "Listener has not been started." msgstr "Listener wurde nicht gestartet." +#: portato/config_parser.py:270 +#, python-format +msgid "Unrecognized line in configuration: %s" +msgstr "Unbekannte Zeile in Konfiguration: %s" + #: portato/plugin.py:330 #: portato/plugin.py:333 #, python-format @@ -1008,12 +1001,34 @@ msgstr "Es wird ersetzt durch die Variante vom Plugin '%s'!" msgid "Dependant '%(dep)s' for '%(hook)s' in plugin '%(plugin)s' not found! Adding nevertheless." msgstr "Abhängigkeit %(dep)s' für '%(hook)s' im Plugin '%(plugin)s' nicht gefunden! Lade Plugin trotzdem." -#: portato/session.py:47 +#: plugins/etc_proposals.py:32 +msgid "Cannot start etc-proposals. Not root!" +msgstr "Kann etc-proposals nicht starten. Nur root kann das!" + +#: plugins/notify.py:35 +msgid "Notify called while process is still running!" +msgstr "\"Notify\" aufgerufen, während Emerge noch lief." + +#: plugins/notify.py:39 +msgid "Emerge finished!" +msgstr "Emerge-Prozess erfolgreich beendet!" + +#: plugins/notify.py:43 +msgid "Emerge failed!" +msgstr "Emerge fehlgeschlagen!" + +#: plugins/notify.py:44 #, python-format -msgid "Loading session from '%s'." -msgstr "Lade Session von '%s'." +msgid "Error Code: %d" +msgstr "Fehler-Code: %d" #~ msgid "" +#~ "This software is licensed under the terms of the GPLv2.\n" +#~ "Copyright (C) 2006-2008 René 'Necoro' Neumann <necoro@necoro.net>" +#~ msgstr "" +#~ "This software is licensed under the terms of the GPLv2.\n" +#~ "Copyright (C) 2006-2008 René 'Necoro' Neumann <necoro@necoro.net>" +#~ msgid "" #~ "Update the package list with the current search results while you are " #~ "typing.\n" #~ "<b>Note</b>: Will slow down the typing process." diff --git a/i18n/messages.pot b/i18n/messages.pot index 4087541..c3e73e2 100644 --- a/i18n/messages.pot +++ b/i18n/messages.pot @@ -8,238 +8,213 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-12-11 14:03+0100\n" +"POT-Creation-Date: 2009-01-28 00:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: portato/gui/templates/AboutWindow.glade:8 -msgid "About Portato" -msgstr "" - -#: portato/gui/templates/AboutWindow.glade:18 -msgid "" -"This software is licensed under the terms of the GPLv2.\n" -"Copyright (C) 2006-2008 René 'Necoro' Neumann <necoro@necoro.net>" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:20 -msgid "_File" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:28 -msgid "_Preferences" +#: portato/gui/templates/popups.glade:12 +#: portato/gui/templates/MainWindow.glade:192 +#: portato/gui/templates/MainWindow.glade:265 +msgid "Emerge _Paused" msgstr "" -#: portato/gui/templates/MainWindow.glade:46 -msgid "Re_load Portage" +#: portato/gui/templates/popups.glade:19 +#: portato/gui/templates/MainWindow.glade:200 +#: portato/gui/templates/MainWindow.glade:247 +msgid "_Kill Emerge" msgstr "" -#: portato/gui/templates/MainWindow.glade:70 #: portato/gui/templates/popups.glade:37 +#: portato/gui/templates/MainWindow.glade:70 msgid "gtk-quit" msgstr "" -#: portato/gui/templates/MainWindow.glade:83 -msgid "_Emerge" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:91 -msgid "_Install" -msgstr "" - -#: portato/gui/templates/MainWindow.glade:107 -msgid "_Uninstall" +#: portato/gui/templates/UpdateWindow.glade:7 +msgid "Updatable Packages" msgstr "" -#: portato/gui/templates/MainWindow.glade:123 -#: portato/gui/templates/MainWindow.glade:1082 -msgid "Update _World" +#: portato/gui/templates/UpdateWindow.glade:49 +msgid "_Close" msgstr "" -#: portato/gui/templates/MainWindow.glade:132 -msgid "Show Updatable P_ackages" +#: portato/gui/templates/UpdateWindow.glade:61 +msgid "Select _All" msgstr "" -#: portato/gui/templates/MainWindow.glade:141 -msgid "Show _Only Installed Packages" +#: portato/gui/templates/UpdateWindow.glade:76 +msgid "_Install Selected" msgstr "" -#: portato/gui/templates/MainWindow.glade:155 -msgid "_Sync" +#: portato/gui/templates/AboutWindow.glade:8 +msgid "About Portato" msgstr "" -#: portato/gui/templates/MainWindow.glade:171 -msgid "Save _Flags" +#: portato/gui/templates/PreferenceWindow.glade:7 +msgid "Preferences" msgstr "" -#: portato/gui/templates/MainWindow.glade:192 -#: portato/gui/templates/MainWindow.glade:265 -#: portato/gui/templates/popups.glade:12 -msgid "Emerge _Paused" +#: portato/gui/templates/PreferenceWindow.glade:44 +msgid "Debug" msgstr "" -#: portato/gui/templates/MainWindow.glade:200 -#: portato/gui/templates/MainWindow.glade:247 -#: portato/gui/templates/popups.glade:19 -msgid "_Kill Emerge" +#: portato/gui/templates/PreferenceWindow.glade:60 +msgid "Browser command: " msgstr "" -#: portato/gui/templates/MainWindow.glade:223 -#: portato/gui/templates/MainWindow.glade:1192 -#: portato/gui/windows/main.py:1288 portato/gui/windows/main.py:1290 -msgid "Console" +#: portato/gui/templates/PreferenceWindow.glade:86 +#: portato/gui/templates/PreferenceWindow.glade:602 +msgid "<b>General Options</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:230 -msgid "_Copy" +#: portato/gui/templates/PreferenceWindow.glade:168 +msgid "<b>Package sets to update</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:276 -msgid "Plu_gins" +#: portato/gui/templates/PreferenceWindow.glade:187 +msgid "<b>Update World Options</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:288 -msgid "_?" +#: portato/gui/templates/PreferenceWindow.glade:216 +msgid "Sync command: " msgstr "" -#: portato/gui/templates/MainWindow.glade:296 -msgid "_About" +#: portato/gui/templates/PreferenceWindow.glade:237 +msgid "<b>Sync Options</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:314 -msgid "_Plugins" +#: portato/gui/templates/PreferenceWindow.glade:290 +msgid "File name to use, if package.use is a directory: " msgstr "" -#: portato/gui/templates/MainWindow.glade:356 -msgid "gtk-delete" +#: portato/gui/templates/PreferenceWindow.glade:301 +msgid "Add only exact version to package.use" msgstr "" -#: portato/gui/templates/MainWindow.glade:370 -msgid "gtk-find" +#: portato/gui/templates/PreferenceWindow.glade:314 +msgid "Add only exact version to package.keywords" msgstr "" -#: portato/gui/templates/MainWindow.glade:484 -#: portato/gui/templates/MainWindow.glade:603 -#: portato/gui/templates/MainWindow.glade:716 -#: portato/gui/templates/MainWindow.glade:731 -#: portato/gui/templates/PluginWindow.glade:98 -#: portato/gui/templates/PluginWindow.glade:123 -msgid "label" +#: portato/gui/templates/PreferenceWindow.glade:328 +msgid "File name to use, if package.keywords is a directory: " msgstr "" -#: portato/gui/templates/MainWindow.glade:495 -msgid "Install onto system" +#: portato/gui/templates/PreferenceWindow.glade:362 +msgid "File name to use, if package.mask/package.unmask is a directory: " msgstr "" -#: portato/gui/templates/MainWindow.glade:518 -msgid "Uninstall from system" +#: portato/gui/templates/PreferenceWindow.glade:373 +msgid "Add only exact version to package.mask/package.unmask" msgstr "" -#: portato/gui/templates/MainWindow.glade:541 -msgid "Revert changes" +#: portato/gui/templates/PreferenceWindow.glade:395 +msgid "" +"<u>You may use the following placeholders:</u>\n" +"\n" +"<i>$(pkg)</i>: package name\n" +"<i>$(cat)</i>: category\n" +"<i>$(cat-1)/$(cat-2)</i>: first/second part of the category\n" +"<i>$(version)</i> : version of the package" msgstr "" -#: portato/gui/templates/MainWindow.glade:619 -msgid "<b>License:</b>" +#: portato/gui/templates/PreferenceWindow.glade:422 +msgid "<u><i>Use-Flags</i></u>" msgstr "" -#: portato/gui/templates/MainWindow.glade:636 -msgid "<b>Installed, but not in portage anymore</b>" +#: portato/gui/templates/PreferenceWindow.glade:437 +msgid "<u><i>Testing Keywords</i></u>" msgstr "" -#: portato/gui/templates/MainWindow.glade:651 -msgid "<span foreground='red'><b>MISSING KEYWORD</b></span>" +#: portato/gui/templates/PreferenceWindow.glade:452 +msgid "<u><i>Masking Keywords</i></u>" msgstr "" -#: portato/gui/templates/MainWindow.glade:683 -msgid "<b>Description:</b>" +#: portato/gui/templates/PreferenceWindow.glade:469 +msgid "<b>Use Flag and Keyword Options</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:699 -msgid "<b>Overlay:</b>" +#: portato/gui/templates/PreferenceWindow.glade:488 +#: portato/gui/templates/MainWindow.glade:875 +msgid "General" msgstr "" -#: portato/gui/templates/MainWindow.glade:747 -msgid "<b>Homepage:</b>" +#: portato/gui/templates/PreferenceWindow.glade:527 +msgid "Enable systray" msgstr "" -#: portato/gui/templates/MainWindow.glade:765 portato/gui/windows/main.py:940 -msgid "Installed" +#: portato/gui/templates/PreferenceWindow.glade:540 +msgid "Show emerge progress in window title" msgstr "" -#: portato/gui/templates/MainWindow.glade:784 portato/gui/windows/main.py:257 -#: portato/gui/windows/main.py:260 portato/gui/windows/main.py:263 -#: portato/gui/windows/main.py:362 portato/gui/windows/main.py:366 -#: portato/gui/windows/main.py:373 portato/gui/windows/main.py:377 -msgid "Masked" +#: portato/gui/templates/PreferenceWindow.glade:554 +msgid "Show emerge progress in console title" msgstr "" -#: portato/gui/templates/MainWindow.glade:817 portato/gui/windows/main.py:274 -#: portato/gui/windows/main.py:277 portato/gui/windows/main.py:335 -#: portato/gui/windows/main.py:339 -msgid "Testing" +#: portato/gui/templates/PreferenceWindow.glade:568 +msgid "Hide on minimization (only if systray is enabled)" msgstr "" -#: portato/gui/templates/MainWindow.glade:836 -msgid "<b>Use Flags:</b>" +#: portato/gui/templates/PreferenceWindow.glade:585 +msgid "Search while typing" msgstr "" -#: portato/gui/templates/MainWindow.glade:875 -#: portato/gui/templates/PreferenceWindow.glade:488 -msgid "General" +#: portato/gui/templates/PreferenceWindow.glade:640 +msgid "Console Font" msgstr "" -#: portato/gui/templates/MainWindow.glade:901 -msgid "Use List" +#: portato/gui/templates/PreferenceWindow.glade:651 +msgid "Chose a console font" msgstr "" -#: portato/gui/templates/MainWindow.glade:928 -msgid "Dependencies" +#: portato/gui/templates/PreferenceWindow.glade:669 +msgid "Maximum length of the console title" msgstr "" -#: portato/gui/templates/MainWindow.glade:955 -msgid "Ebuild" +#: portato/gui/templates/PreferenceWindow.glade:699 +msgid "<b>Console Options</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:982 -msgid "Changelog" +#: portato/gui/templates/PreferenceWindow.glade:740 +msgid "Package Tabs" msgstr "" -#: portato/gui/templates/MainWindow.glade:1009 -msgid "Files" +#: portato/gui/templates/PreferenceWindow.glade:765 +msgid "System Tabs" msgstr "" -#: portato/gui/templates/MainWindow.glade:1047 -msgid "Execute the current selected queue" +#: portato/gui/templates/PreferenceWindow.glade:791 +msgid "<b>Tab Options</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:1066 -msgid "E_xecute" +#: portato/gui/templates/PreferenceWindow.glade:825 +msgid "Show slots in the version list" msgstr "" -#: portato/gui/templates/MainWindow.glade:1081 -msgid "" -"Calculate the packages which will be installed during an \"update world\"" +#: portato/gui/templates/PreferenceWindow.glade:837 +msgid "Collapse categories with same prefix" msgstr "" -#: portato/gui/templates/MainWindow.glade:1094 -msgid "Remove the selected package from the queue" +#: portato/gui/templates/PreferenceWindow.glade:853 +msgid "<b>Package Options</b>" msgstr "" -#: portato/gui/templates/MainWindow.glade:1095 -msgid "_Remove" +#: portato/gui/templates/PreferenceWindow.glade:877 +msgid "Visual" msgstr "" -#: portato/gui/templates/MainWindow.glade:1167 portato/gui/windows/main.py:633 -msgid "Queue" +#: portato/gui/templates/PreferenceWindow.glade:895 +#: portato/gui/templates/PluginWindow.glade:223 +#: portato/gui/templates/SearchWindow.glade:48 +#: portato/gui/templates/MailInfoWindow.glade:170 +msgid "gtk-cancel" msgstr "" -#: portato/gui/templates/MainWindow.glade:1227 -msgid "Log" +#: portato/gui/templates/PreferenceWindow.glade:904 +#: portato/gui/templates/PluginWindow.glade:235 +msgid "gtk-apply" msgstr "" #: portato/gui/templates/PluginWindow.glade:8 @@ -254,13 +229,22 @@ msgstr "" msgid "Needed dependencies" msgstr "" +#: portato/gui/templates/PluginWindow.glade:98 +#: portato/gui/templates/PluginWindow.glade:123 +#: portato/gui/templates/MainWindow.glade:484 +#: portato/gui/templates/MainWindow.glade:603 +#: portato/gui/templates/MainWindow.glade:716 +#: portato/gui/templates/MainWindow.glade:731 +msgid "label" +msgstr "" + #: portato/gui/templates/PluginWindow.glade:109 msgid "<b>Author:</b>" msgstr "" #: portato/gui/templates/PluginWindow.glade:144 -#: portato/gui/windows/main.py:939 portato/gui/windows/plugin.py:27 -#: portato/gui/windows/update.py:47 +#: portato/gui/windows/update.py:47 portato/gui/windows/main.py:942 +#: portato/gui/windows/plugin.py:27 msgid "Enabled" msgstr "" @@ -279,34 +263,6 @@ msgstr "" msgid "Disabled" msgstr "" -#: portato/gui/templates/PluginWindow.glade:223 -#: portato/gui/templates/SearchWindow.glade:48 -#: portato/gui/templates/MailInfoWindow.glade:170 -#: portato/gui/templates/PreferenceWindow.glade:895 -msgid "gtk-cancel" -msgstr "" - -#: portato/gui/templates/PluginWindow.glade:235 -#: portato/gui/templates/PreferenceWindow.glade:904 -msgid "gtk-apply" -msgstr "" - -#: portato/gui/templates/UpdateWindow.glade:7 -msgid "Updatable Packages" -msgstr "" - -#: portato/gui/templates/UpdateWindow.glade:49 -msgid "_Close" -msgstr "" - -#: portato/gui/templates/UpdateWindow.glade:61 -msgid "Select _All" -msgstr "" - -#: portato/gui/templates/UpdateWindow.glade:76 -msgid "_Install Selected" -msgstr "" - #: portato/gui/templates/SearchWindow.glade:8 msgid "Search Results" msgstr "" @@ -357,344 +313,407 @@ msgstr "" msgid "_Send" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:7 -msgid "Preferences" +#: portato/gui/templates/MainWindow.glade:20 +msgid "_File" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:44 -msgid "Debug" +#: portato/gui/templates/MainWindow.glade:28 +msgid "_Preferences" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:60 -msgid "Browser command: " +#: portato/gui/templates/MainWindow.glade:46 +msgid "Re_load Portage" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:86 -#: portato/gui/templates/PreferenceWindow.glade:602 -msgid "<b>General Options</b>" +#: portato/gui/templates/MainWindow.glade:83 +msgid "_Emerge" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:168 -msgid "<b>Package sets to update</b>" +#: portato/gui/templates/MainWindow.glade:91 +msgid "_Install" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:187 -msgid "<b>Update World Options</b>" +#: portato/gui/templates/MainWindow.glade:107 +msgid "_Uninstall" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:216 -msgid "Sync command: " +#: portato/gui/templates/MainWindow.glade:123 +#: portato/gui/templates/MainWindow.glade:1082 +msgid "Update _World" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:237 -msgid "<b>Sync Options</b>" +#: portato/gui/templates/MainWindow.glade:132 +msgid "Show Updatable P_ackages" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:290 -msgid "File name to use, if package.use is a directory: " +#: portato/gui/templates/MainWindow.glade:141 +msgid "Show _Only Installed Packages" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:301 -msgid "Add only exact version to package.use" +#: portato/gui/templates/MainWindow.glade:155 +msgid "_Sync" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:314 -msgid "Add only exact version to package.keywords" +#: portato/gui/templates/MainWindow.glade:171 +msgid "Save _Flags" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:328 -msgid "File name to use, if package.keywords is a directory: " +#: portato/gui/templates/MainWindow.glade:223 +#: portato/gui/templates/MainWindow.glade:1192 +#: portato/gui/windows/main.py:1295 portato/gui/windows/main.py:1297 +msgid "Console" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:362 -msgid "File name to use, if package.mask/package.unmask is a directory: " +#: portato/gui/templates/MainWindow.glade:230 +msgid "_Copy" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:373 -msgid "Add only exact version to package.mask/package.unmask" +#: portato/gui/templates/MainWindow.glade:276 +msgid "Plu_gins" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:395 -msgid "" -"<u>You may use the following placeholders:</u>\n" -"\n" -"<i>$(pkg)</i>: package name\n" -"<i>$(cat)</i>: category\n" -"<i>$(cat-1)/$(cat-2)</i>: first/second part of the category\n" -"<i>$(version)</i> : version of the package" +#: portato/gui/templates/MainWindow.glade:288 +msgid "_?" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:422 -msgid "<u><i>Use-Flags</i></u>" +#: portato/gui/templates/MainWindow.glade:296 +msgid "_About" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:437 -msgid "<u><i>Testing Keywords</i></u>" +#: portato/gui/templates/MainWindow.glade:314 +msgid "_Plugins" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:452 -msgid "<u><i>Masking Keywords</i></u>" +#: portato/gui/templates/MainWindow.glade:356 +msgid "gtk-delete" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:469 -msgid "<b>Use Flag and Keyword Options</b>" +#: portato/gui/templates/MainWindow.glade:370 +msgid "gtk-find" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:527 -msgid "Enable systray" +#: portato/gui/templates/MainWindow.glade:495 +msgid "Install onto system" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:540 -msgid "Show emerge progress in window title" +#: portato/gui/templates/MainWindow.glade:518 +msgid "Uninstall from system" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:554 -msgid "Show emerge progress in console title" +#: portato/gui/templates/MainWindow.glade:541 +msgid "Revert changes" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:568 -msgid "Hide on minimization (only if systray is enabled)" +#: portato/gui/templates/MainWindow.glade:619 +msgid "<b>License:</b>" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:585 -msgid "Search while typing" +#: portato/gui/templates/MainWindow.glade:636 +msgid "<b>Installed, but not in portage anymore</b>" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:640 -msgid "Console Font" +#: portato/gui/templates/MainWindow.glade:651 +msgid "<span foreground='red'><b>MISSING KEYWORD</b></span>" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:651 -msgid "Chose a console font" +#: portato/gui/templates/MainWindow.glade:683 +msgid "<b>Description:</b>" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:669 -msgid "Maximum length of the console title" +#: portato/gui/templates/MainWindow.glade:699 +msgid "<b>Overlay:</b>" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:699 -msgid "<b>Console Options</b>" +#: portato/gui/templates/MainWindow.glade:747 +msgid "<b>Homepage:</b>" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:740 -msgid "Package Tabs" +#: portato/gui/templates/MainWindow.glade:765 portato/gui/windows/main.py:943 +msgid "Installed" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:765 -msgid "System Tabs" +#: portato/gui/templates/MainWindow.glade:784 portato/gui/windows/main.py:258 +#: portato/gui/windows/main.py:261 portato/gui/windows/main.py:264 +#: portato/gui/windows/main.py:363 portato/gui/windows/main.py:367 +#: portato/gui/windows/main.py:374 portato/gui/windows/main.py:378 +msgid "Masked" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:791 -msgid "<b>Tab Options</b>" +#: portato/gui/templates/MainWindow.glade:817 portato/gui/windows/main.py:275 +#: portato/gui/windows/main.py:278 portato/gui/windows/main.py:336 +#: portato/gui/windows/main.py:340 +msgid "Testing" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:825 -msgid "Show slots in the version list" +#: portato/gui/templates/MainWindow.glade:836 +msgid "<b>Use Flags:</b>" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:837 -msgid "Collapse categories with same prefix" +#: portato/gui/templates/MainWindow.glade:901 +msgid "Use List" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:853 -msgid "<b>Package Options</b>" +#: portato/gui/templates/MainWindow.glade:928 +msgid "Dependencies" msgstr "" -#: portato/gui/templates/PreferenceWindow.glade:877 -msgid "Visual" +#: portato/gui/templates/MainWindow.glade:955 +msgid "Ebuild" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:982 +msgid "Changelog" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:1009 +msgid "Files" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:1047 +msgid "Execute the current selected queue" msgstr "" -#: portato.py:43 +#: portato/gui/templates/MainWindow.glade:1066 +msgid "E_xecute" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:1081 +msgid "" +"Calculate the packages which will be installed during an \"update world\"" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:1094 +msgid "Remove the selected package from the queue" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:1095 +msgid "_Remove" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:1167 portato/gui/windows/main.py:636 +msgid "Queue" +msgstr "" + +#: portato/gui/templates/MainWindow.glade:1227 +msgid "Log" +msgstr "" + +#: portato.py:38 msgid "do not fork off as root" msgstr "" -#: portato.py:43 +#: portato.py:38 msgid "-L is deprecated" msgstr "" -#: portato.py:55 +#: portato.py:50 msgid "Starting Portato" msgstr "" -#: plugins/etc_proposals.py:32 -msgid "Cannot start etc-proposals. Not root!" +#: portato/gui/wrapper.py:59 +msgid "oneshot" msgstr "" -#: plugins/notify.py:35 -msgid "Notify called while process is still running!" +#: portato/gui/wrapper.py:64 +#, python-format +msgid "updating from version %s" msgstr "" -#: plugins/notify.py:39 -msgid "Emerge finished!" +#: portato/gui/wrapper.py:66 +msgid "updating" msgstr "" -#: plugins/notify.py:43 -msgid "Emerge failed!" +#: portato/gui/wrapper.py:71 +#, python-format +msgid "downgrading from version %s" msgstr "" -#: plugins/notify.py:44 -#, python-format -msgid "Error Code: %d" +#: portato/gui/wrapper.py:73 +msgid "downgrading" msgstr "" -#: portato/backend/flags.py:527 -#, python-format -msgid "Conflicting values for masking status: %s" +#: portato/gui/wrapper.py:77 +msgid "IUSE changes:" msgstr "" -#: portato/backend/portage/package.py:130 -#, python-format -msgid "BUG in flags.new_masking_status. It returns '%s'" +#: portato/gui/wrapper.py:95 +msgid "(In Progress)" msgstr "" -#: portato/backend/portage/system.py:259 -#, python-format -msgid "No best match for %s. It seems not to be in the tree anymore." +#: portato/gui/wrapper.py:120 +msgid "Install" msgstr "" -#: portato/backend/portage/system.py:317 -#, python-format -msgid "Found a not installed dependency: %s." +#: portato/gui/wrapper.py:131 +msgid "Uninstall" msgstr "" -#: portato/backend/portage/system.py:359 -#, python-format -msgid "" -"Bug? No best match could be found for '%(package)s'. Needed by: '%(cpv)s'." +#: portato/gui/wrapper.py:143 +msgid "Update" msgstr "" -#: portato/gui/windows/mailinfo.py:83 +#: portato/gui/dialogs.py:17 +msgid "Mail could not be sent" +msgstr "" + +#: portato/gui/dialogs.py:18 #, python-format -msgid "" -"An error occurred while sending. I think we were greylisted. The error: %s" +msgid "The error was: %s" msgstr "" -#: portato/gui/windows/mailinfo.py:84 -msgid "Retrying after waiting 60 seconds." +#: portato/gui/dialogs.py:24 +msgid "Do you really want to quit?" msgstr "" -#: portato/gui/windows/main.py:144 -msgid "<no description>" +#: portato/gui/dialogs.py:25 +msgid "" +"There are some packages in the emerge queue and/or an emerge process is " +"running." msgstr "" -#: portato/gui/windows/main.py:170 -msgid "The first homepage part does not start with 'http' or 'ftp'." +#: portato/gui/dialogs.py:43 +#, python-format +msgid "%(blocked)s is blocked by %(blocks)s." msgstr "" -#: portato/gui/windows/main.py:174 -msgid "Blank inside homepage." +#: portato/gui/dialogs.py:44 +msgid "Please unmerge the blocking package." msgstr "" -#: portato/gui/windows/main.py:213 +#: portato/gui/dialogs.py:50 +msgid "You are not root." +msgstr "" + +#: portato/gui/dialogs.py:56 #, python-format -msgid "Package could not be found: %s" +msgid "%s seems to be masked." msgstr "" -#: portato/gui/windows/main.py:266 portato/gui/windows/main.py:364 -msgid "Masked by user" +#: portato/gui/dialogs.py:57 +msgid "Do you want to unmask it and its dependencies?" msgstr "" -#: portato/gui/windows/main.py:454 -msgid "Loading Config" +#: portato/gui/dialogs.py:63 +msgid "Package not found!" msgstr "" -#: portato/gui/windows/main.py:466 -msgid "Creating Database" +#: portato/gui/dialogs.py:69 +msgid "Do not show this dialog again." msgstr "" -#: portato/gui/windows/main.py:470 -msgid "Loading Plugins" +#: portato/gui/dialogs.py:70 +#, python-format +msgid "Changed %s" msgstr "" -#: portato/gui/windows/main.py:483 -msgid "Building frontend" +#: portato/gui/dialogs.py:71 +msgid "" +"Portato will write these changes into the appropriate files.\n" +"Please backup them if you think it is necessairy." msgstr "" -#: portato/gui/windows/main.py:533 portato/gui/views.py:129 -#, python-format -msgid "Error: %s" +#: portato/gui/dialogs.py:80 +msgid "You cannot remove dependencies. :)" msgstr "" -#: portato/gui/windows/main.py:574 -msgid "Restoring Session" +#: portato/gui/dialogs.py:86 +msgid "" +"This is the updates queue. You cannot remove single elements.\n" +"Do you want to clear the whole queue instead?" msgstr "" -#: portato/gui/windows/main.py:584 -msgid "Finishing startup" +#: portato/gui/dialogs.py:92 +msgid "Do you really want to clear the whole queue?" msgstr "" -#: portato/gui/windows/main.py:636 -msgid "Options" +#: portato/gui/dialogs.py:111 +msgid "A prerequisite for starting Portato was not matched." msgstr "" -#: portato/gui/windows/main.py:652 -msgid "Categories" +#: portato/gui/views.py:84 +msgid "Package is not installed" msgstr "" -#: portato/gui/windows/main.py:711 -msgid "Packages" +#: portato/gui/views.py:101 +#, python-format +msgid "No %(old)s language file installed. Falling back to %(new)s." msgstr "" -#: portato/gui/windows/main.py:759 -msgid "Versions" +#: portato/gui/views.py:110 +#, python-format +msgid "No %(old)s language file installed. Disable highlighting." msgstr "" -#: portato/gui/windows/main.py:762 -msgid "Slot" +#: portato/gui/views.py:129 portato/gui/windows/main.py:536 +#, python-format +msgid "Error: %s" msgstr "" -#: portato/gui/windows/main.py:895 +#: portato/gui/updater.py:100 #, python-format -msgid "If '%s' is disabled" +msgid "" +"No unmasked version of package '%s' found. Trying masked ones. This normally " +"should not happen..." msgstr "" -#: portato/gui/windows/main.py:897 +#: portato/gui/updater.py:104 #, python-format -msgid "If '%s' is enabled" +msgid "" +"Trying to remove package '%s' from queue which does not exist in system." msgstr "" -#: portato/gui/windows/main.py:903 -msgid "One of the following" +#: portato/gui/exception_handling.py:31 +msgid "" +"A programming error has been detected during the execution of this program." msgstr "" -#: portato/gui/windows/main.py:908 -msgid "All of the following" +#: portato/gui/exception_handling.py:32 +msgid "Bug Detected" msgstr "" -#: portato/gui/windows/main.py:919 +#: portato/gui/exception_handling.py:33 msgid "" -"Can't display dependencies: This package has an unsupported dependency " -"string." +"It probably isn't fatal, but should be reported to the developers " +"nonetheless." msgstr "" -#: portato/gui/windows/main.py:941 -msgid "Flag" +#: portato/gui/exception_handling.py:35 +msgid "Show Details" msgstr "" -#: portato/gui/windows/main.py:942 portato/gui/windows/preference.py:211 -msgid "Description" +#: portato/gui/exception_handling.py:36 +msgid "Send..." msgstr "" -#: portato/gui/windows/main.py:965 -msgid "This is an expanded use flag and cannot be selected" +#: portato/gui/exception_handling.py:75 +msgid "Save traceback..." msgstr "" -#: portato/gui/windows/main.py:1003 -#, python-format -msgid "Translating session from version %d to %d." +#: portato/gui/__init__.py:22 +msgid "Loading Backend" msgstr "" -#: portato/gui/windows/main.py:1006 +#: portato/gui/windows/search.py:57 +msgid "Results" +msgstr "" + +#: portato/gui/windows/mailinfo.py:83 #, python-format -msgid "Cannot translate session from version %d to %d." +msgid "" +"An error occurred while sending. I think we were greylisted. The error: %s" msgstr "" -#: portato/gui/windows/main.py:1464 -msgid "use flags" +#: portato/gui/windows/mailinfo.py:84 +msgid "Retrying after waiting 60 seconds." msgstr "" -#: portato/gui/windows/main.py:1476 -msgid "masking keywords" +#: portato/gui/windows/update.py:48 +msgid "Package" +msgstr "" + +#: portato/gui/windows/splash.py:35 +#, python-format +msgid "... is starting up: %s" msgstr "" #: portato/gui/windows/preference.py:148 @@ -717,122 +736,131 @@ msgstr "" msgid "Package Set" msgstr "" -#: portato/gui/windows/search.py:57 -msgid "Results" +#: portato/gui/windows/preference.py:211 portato/gui/windows/main.py:945 +msgid "Description" msgstr "" -#: portato/gui/windows/splash.py:35 +#: portato/gui/windows/main.py:145 +msgid "<no description>" +msgstr "" + +#: portato/gui/windows/main.py:171 +msgid "The first homepage part does not start with 'http' or 'ftp'." +msgstr "" + +#: portato/gui/windows/main.py:175 +msgid "Blank inside homepage." +msgstr "" + +#: portato/gui/windows/main.py:214 #, python-format -msgid "... is starting up: %s" +msgid "Package could not be found: %s" msgstr "" -#: portato/gui/windows/update.py:48 -msgid "Package" +#: portato/gui/windows/main.py:267 portato/gui/windows/main.py:365 +msgid "Masked by user" msgstr "" -#: portato/gui/__init__.py:20 -msgid "Loading Backend" +#: portato/gui/windows/main.py:457 +msgid "Loading Config" msgstr "" -#: portato/gui/dialogs.py:17 -msgid "Mail could not be sent" +#: portato/gui/windows/main.py:469 +msgid "Creating Database" msgstr "" -#: portato/gui/dialogs.py:18 -#, python-format -msgid "The error was: %s" +#: portato/gui/windows/main.py:473 +msgid "Loading Plugins" msgstr "" -#: portato/gui/dialogs.py:24 -msgid "Do you really want to quit?" +#: portato/gui/windows/main.py:486 +msgid "Building frontend" msgstr "" -#: portato/gui/dialogs.py:25 -msgid "" -"There are some packages in the emerge queue and/or an emerge process is " -"running." +#: portato/gui/windows/main.py:577 +msgid "Restoring Session" msgstr "" -#: portato/gui/dialogs.py:43 -#, python-format -msgid "%(blocked)s is blocked by %(blocks)s." +#: portato/gui/windows/main.py:587 +msgid "Finishing startup" msgstr "" -#: portato/gui/dialogs.py:44 -msgid "Please unmerge the blocking package." +#: portato/gui/windows/main.py:639 +msgid "Options" msgstr "" -#: portato/gui/dialogs.py:50 -msgid "You are not root." +#: portato/gui/windows/main.py:655 +msgid "Categories" msgstr "" -#: portato/gui/dialogs.py:56 -#, python-format -msgid "%s seems to be masked." +#: portato/gui/windows/main.py:714 +msgid "Packages" msgstr "" -#: portato/gui/dialogs.py:57 -msgid "Do you want to unmask it and its dependencies?" +#: portato/gui/windows/main.py:762 +msgid "Versions" msgstr "" -#: portato/gui/dialogs.py:63 -msgid "Package not found!" +#: portato/gui/windows/main.py:765 +msgid "Slot" msgstr "" -#: portato/gui/dialogs.py:69 -msgid "Do not show this dialog again." +#: portato/gui/windows/main.py:898 +#, python-format +msgid "If '%s' is disabled" msgstr "" -#: portato/gui/dialogs.py:70 +#: portato/gui/windows/main.py:900 #, python-format -msgid "Changed %s" +msgid "If '%s' is enabled" msgstr "" -#: portato/gui/dialogs.py:71 -msgid "" -"Portato will write these changes into the appropriate files.\n" -"Please backup them if you think it is necessairy." +#: portato/gui/windows/main.py:906 +msgid "One of the following" msgstr "" -#: portato/gui/dialogs.py:80 -msgid "You cannot remove dependencies. :)" +#: portato/gui/windows/main.py:911 +msgid "All of the following" msgstr "" -#: portato/gui/dialogs.py:86 +#: portato/gui/windows/main.py:922 msgid "" -"This is the updates queue. You cannot remove single elements.\n" -"Do you want to clear the whole queue instead?" +"Can't display dependencies: This package has an unsupported dependency " +"string." msgstr "" -#: portato/gui/dialogs.py:92 -msgid "Do you really want to clear the whole queue?" +#: portato/gui/windows/main.py:944 +msgid "Flag" msgstr "" -#: portato/gui/exception_handling.py:31 -msgid "" -"A programming error has been detected during the execution of this program." +#: portato/gui/windows/main.py:968 +msgid "This is an expanded use flag and cannot be selected" msgstr "" -#: portato/gui/exception_handling.py:32 -msgid "Bug Detected" +#: portato/gui/windows/main.py:1006 +#, python-format +msgid "Translating session from version %d to %d." msgstr "" -#: portato/gui/exception_handling.py:33 -msgid "" -"It probably isn't fatal, but should be reported to the developers " -"nonetheless." +#: portato/gui/windows/main.py:1009 +#, python-format +msgid "Cannot translate session from version %d to %d." msgstr "" -#: portato/gui/exception_handling.py:35 -msgid "Show Details" +#: portato/gui/windows/main.py:1471 +msgid "use flags" msgstr "" -#: portato/gui/exception_handling.py:36 -msgid "Send..." +#: portato/gui/windows/main.py:1483 +msgid "masking keywords" msgstr "" -#: portato/gui/exception_handling.py:75 -msgid "Save traceback..." +#: portato/gui/windows/main.py:1885 +msgid "The portage tree is not existing." +msgstr "" + +#: portato/gui/windows/main.py:1889 +msgid "The portage tree seems to be empty." msgstr "" #: portato/gui/session.py:21 @@ -852,19 +880,6 @@ msgstr "" msgid "Current session format is newer than this version supports." msgstr "" -#: portato/gui/updater.py:100 -#, python-format -msgid "" -"No unmasked version of package '%s' found. Trying masked ones. This normally " -"should not happen..." -msgstr "" - -#: portato/gui/updater.py:104 -#, python-format -msgid "" -"Trying to remove package '%s' from queue which does not exist in system." -msgstr "" - #: portato/gui/utils.py:180 portato/gui/utils.py:337 msgid "ALL" msgstr "" @@ -889,60 +904,48 @@ msgstr "" msgid "Populating database..." msgstr "" -#: portato/gui/views.py:84 -msgid "Package is not installed" -msgstr "" - -#: portato/gui/views.py:101 +#: portato/backend/flags.py:527 #, python-format -msgid "No %(old)s language file installed. Falling back to %(new)s." +msgid "Conflicting values for masking status: %s" msgstr "" -#: portato/gui/views.py:110 +#: portato/backend/portage/system.py:255 #, python-format -msgid "No %(old)s language file installed. Disable highlighting." -msgstr "" - -#: portato/gui/wrapper.py:59 -msgid "oneshot" +msgid "No best match for %s. It seems not to be in the tree anymore." msgstr "" -#: portato/gui/wrapper.py:64 +#: portato/backend/portage/system.py:313 #, python-format -msgid "updating from version %s" -msgstr "" - -#: portato/gui/wrapper.py:66 -msgid "updating" +msgid "Found a not installed dependency: %s." msgstr "" -#: portato/gui/wrapper.py:71 +#: portato/backend/portage/system.py:355 #, python-format -msgid "downgrading from version %s" -msgstr "" - -#: portato/gui/wrapper.py:73 -msgid "downgrading" +msgid "" +"Bug? No best match could be found for '%(package)s'. Needed by: '%(cpv)s'." msgstr "" -#: portato/gui/wrapper.py:77 -msgid "IUSE changes:" +#: portato/backend/portage/package.py:125 +#, python-format +msgid "BUG in flags.new_masking_status. It returns '%s'" msgstr "" -#: portato/gui/wrapper.py:95 -msgid "(In Progress)" +#: portato/helper.py:76 +msgid "Invalid dependency string" msgstr "" -#: portato/gui/wrapper.py:120 -msgid "Install" +#: portato/session.py:63 +#, python-format +msgid "Loading '%s' session from '%s'." msgstr "" -#: portato/gui/wrapper.py:131 -msgid "Uninstall" +#: portato/session.py:65 +#, python-format +msgid "Loading session from '%s'." msgstr "" -#: portato/gui/wrapper.py:143 -msgid "Update" +#: portato/plistener.py:94 +msgid "Listener has not been started." msgstr "" #: portato/config_parser.py:270 @@ -950,14 +953,6 @@ msgstr "" msgid "Unrecognized line in configuration: %s" msgstr "" -#: portato/helper.py:76 -msgid "Invalid dependency string" -msgstr "" - -#: portato/plistener.py:94 -msgid "Listener has not been started." -msgstr "" - #: portato/plugin.py:330 portato/plugin.py:333 #, python-format msgid "Loading plugin '%(plugin)s' failed: %(error)s" @@ -999,7 +994,23 @@ msgid "" "nevertheless." msgstr "" -#: portato/session.py:47 +#: plugins/etc_proposals.py:32 +msgid "Cannot start etc-proposals. Not root!" +msgstr "" + +#: plugins/notify.py:35 +msgid "Notify called while process is still running!" +msgstr "" + +#: plugins/notify.py:39 +msgid "Emerge finished!" +msgstr "" + +#: plugins/notify.py:43 +msgid "Emerge failed!" +msgstr "" + +#: plugins/notify.py:44 #, python-format -msgid "Loading session from '%s'." +msgid "Error Code: %d" msgstr "" diff --git a/portato/db/__init__.py b/portato/db/__init__.py new file mode 100644 index 0000000..122940a --- /dev/null +++ b/portato/db/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# +# File: portato/db/__init__.py +# This file is part of the Portato-Project, a graphical portage-frontend. +# +# Copyright (C) 2009 René 'Necoro' Neumann +# This is free software. You may redistribute copies of it under the terms of +# the GNU General Public License version 2. +# There is NO WARRANTY, to the extent permitted by law. +# +# Written by René 'Necoro' Neumann <necoro@necoro.net> + +from __future__ import absolute_import + +from ..constants import USE_SQL +from ..helper import debug + +if USE_SQL: + debug("Using SQLDatabase") + from .sql import SQLDatabase + Database = SQLDatabase +else: + debug("Using DictDatabase") + from .dict import DictDatabase + Database = DictDatabase diff --git a/portato/db/database.py b/portato/db/database.py new file mode 100644 index 0000000..941c3a3 --- /dev/null +++ b/portato/db/database.py @@ -0,0 +1,89 @@ +# -*- coding: utf-8 -*- +# +# File: portato/db/database.py +# This file is part of the Portato-Project, a graphical portage-frontend. +# +# Copyright (C) 2009 René 'Necoro' Neumann +# This is free software. You may redistribute copies of it under the terms of +# the GNU General Public License version 2. +# There is NO WARRANTY, to the extent permitted by law. +# +# Written by René 'Necoro' Neumann <necoro@necoro.net> + +from __future__ import absolute_import, with_statement + +from threading import RLock +from functools import wraps + +class PkgData (object): + __slots__ = ("cat", "pkg", "inst") + + def __init__ (self, cat, pkg, inst): + self.cat = cat + self.pkg = pkg + self.inst = inst + + def __iter__ (self): + return iter((self.cat, self.pkg, self.inst)) + + def __cmp__ (self, other): + return cmp(self.pkg.lower(), other.pkg.lower()) + + def __repr__ (self): + return "<Package (%(cat)s, %(pkg)s, %(inst)s)>" % {"cat" : self.cat, "pkg" : self.pkg, "inst" : self.inst} + +class Database (object): + + ALL = _("ALL") + + def __init__ (self): + self._lock = RLock() + + @staticmethod + def lock (f): + @wraps(f) + def wrapper (self, *args, **kwargs): + with self._lock: + r = f(self, *args, **kwargs) + + return r + + return wrapper + + def populate (self, category = None): + """Populates the database. + + @param category: An optional category - so only packages of this category are inserted. + @type category: string + """ + raise NotImplentedError + + def get_cat (self, cat = None, byName = True): + """Returns the packages in the category. + + @param cat: category to return the packages from; if None it defaults to C{ALL} + @type cat: string + @param byName: selects whether to return the list sorted by name or by installation + @type byName: boolean + @return: an iterator over the packages + @rtype: L{PkgData}<iterator> + """ + raise NotImplentedError + + def get_categories (self, installed = False): + """Returns all categories. + + @param installed: Only return these with at least one installed package. + @type installed: boolean + @returns: the list of categories + @rtype: string<iterator> + """ + raise NotImplentedError + + def reload (self, cat = None): + """Reloads the given category. + + @param cat: category + @type cat: string + """ + raise NotImplentedError diff --git a/portato/db/dict.py b/portato/db/dict.py new file mode 100644 index 0000000..5c5ca49 --- /dev/null +++ b/portato/db/dict.py @@ -0,0 +1,141 @@ +# -*- coding: utf-8 -*- +# +# File: portato/db/dict.py +# This file is part of the Portato-Project, a graphical portage-frontend. +# +# Copyright (C) 2009 René 'Necoro' Neumann +# This is free software. You may redistribute copies of it under the terms of +# the GNU General Public License version 2. +# There is NO WARRANTY, to the extent permitted by law. +# +# Written by René 'Necoro' Neumann <necoro@necoro.net> + +from __future__ import absolute_import, with_statement + +import re +from collections import defaultdict +from threading import RLock + +from ..backend import system +from .database import Database, PkgData + +class DictDatabase (Database): + """An internal database which holds a simple dictionary cat -> [package_list].""" + + lock = Database.lock + + def __init__ (self): + """Constructor.""" + Database.__init__(self) + + self.__initialize() + self.populate() + + def __initialize (self): + self._db = defaultdict(list) + self.inst_cats = set([self.ALL]) + self._restrict = None + + def __sort_key (self, x): + return x.pkg.lower() + + @lock + def populate (self, category = None): + + # get the lists + packages = system.find_packages(category, with_version = False) + installed = system.find_packages(category, system.SET_INSTALLED, with_version = False) + + # cycle through packages + for p in packages: + cat, pkg = p.split("/") + inst = p in installed + t = PkgData(cat, pkg, inst) + self._db[cat].append(t) + self._db[self.ALL].append(t) + + if inst: + self.inst_cats.add(cat) + + for key in self._db: # sort alphabetically + self._db[key].sort(key = self.__sort_key) + + @lock + def get_cat (self, cat = None, byName = True): + if not cat: + cat = self.ALL + + def get_pkgs(): + if byName: + for pkg in self._db[cat]: + yield pkg + else: + ninst = [] + for pkg in self._db[cat]: + if pkg.inst: + yield pkg + else: + ninst.append(pkg) + + for pkg in ninst: + yield pkg + + try: + if self.restrict: + return (pkg for pkg in get_pkgs() if self.restrict.search(pkg.pkg))#if pkg[1].find(self.restrict) != -1) + else: + return get_pkgs() + + except KeyError: # cat is in category list - but not in portage + info(_("Catched KeyError => %s seems not to be an available category. Have you played with rsync-excludes?"), cat) + + @lock + def get_categories (self, installed = False): + if not self.restrict: + if installed: + cats = self.inst_cats + else: + cats = self._db.iterkeys() + + else: + if installed: + cats = set((pkg.cat for pkg in self.get_cat(self.ALL) if pkg.inst)) + else: + cats = set((pkg.cat for pkg in self.get_cat(self.ALL))) + + if len(cats)>1: + cats.add(self.ALL) + + return (cat for cat in cats) + + @lock + def reload (self, cat = None): + if cat: + del self._db[cat] + try: + self.inst_cats.remove(cat) + except KeyError: # not in inst_cats - can be ignored + pass + + self._db[self.ALL] = filter(lambda x: x.cat != cat, self._db[self.ALL]) + self.populate(cat+"/*") + else: + self.__initialize() + self.populate() + + def get_restrict (self): + return self._restrict + + @lock + def set_restrict (self, restrict): + if not restrict: + self._restrict = None + else: + try: + regex = re.compile(restrict, re.I) + except re.error, e: + info(_("Error while compiling search expression: '%s'."), str(e)) + else: # only set self._restrict if no error occurred + self._restrict = regex + + restrict = property(get_restrict, set_restrict) diff --git a/portato/db/sql.py b/portato/db/sql.py new file mode 100644 index 0000000..e7be91e --- /dev/null +++ b/portato/db/sql.py @@ -0,0 +1,219 @@ +# -*- coding: utf-8 -*- +# +# File: portato/db/sql.py +# This file is part of the Portato-Project, a graphical portage-frontend. +# +# Copyright (C) 2009 René 'Necoro' Neumann +# This is free software. You may redistribute copies of it under the terms of +# the GNU General Public License version 2. +# There is NO WARRANTY, to the extent permitted by law. +# +# Written by René 'Necoro' Neumann <necoro@necoro.net> + +from __future__ import absolute_import, with_statement + +try: + import sqlite3 as sql +except ImportError: + from pysqlite2 import dbapi2 as sql + +import anydbm +import hashlib +import os + +from functools import wraps + +from ..constants import SESSION_DIR +from ..helper import info, error, debug +from ..backend import system +from .database import Database, PkgData + +class SQLDatabase (Database): + + FORBIDDEN = (".bzr", ".svn", ".git", "CVS", ".hg", "_darcs") + lock = Database.lock + + def __init__ (self): + """Constructor.""" + Database.__init__(self) + + self._restrict = "" + + pkgdb = os.path.join(SESSION_DIR, "package.db") + pkgdb_existed = os.path.exists(pkgdb) + + if pkgdb_existed: + debug("package.db already existant") + else: + debug("package.db not existant") + + pkg_conn = sql.connect(os.path.join(SESSION_DIR, "package.db")) + pkg_conn.row_factory = sql.Row + pkg_conn.execute(""" + CREATE TABLE IF NOT EXISTS packages + ( + name TEXT, + cat TEXT, + inst INTEGER + )""") + + pkg_conn.commit() + + self.was_updated = self.updated() + if self.was_updated or not pkgdb_existed: + info(_("Cleaning database...")) + pkg_conn.execute("DELETE FROM packages") # empty db at beginning + info(_("Populating database...")) + self.populate(connection = pkg_conn) + + pkg_conn.close() + + descr_conn = sql.connect(os.path.join(SESSION_DIR, "descr.db")) + descr_conn.execute(""" + CREATE TABLE IF NOT EXISTS descriptions + ( + cp TEXT, + descr TEXT + )""") + descr_conn.close() + + def updated (self): + changed = False + + def walk (path): + debug("Walking %s", path) + + for root, dirs, files in os.walk(path): + for f in files: + path = os.path.join(root, f) + yield "%s %s" % (f, os.stat(path).st_mtime) + + for forbidden in self.FORBIDDEN: + if forbidden in dirs: + dirs.remove(forbidden) + + overlays = system.get_global_settings("PORTDIR_OVERLAY").split() + hashes = {} + for overlay in overlays: + hashes[overlay] = hashlib.md5("".join(walk(overlay))).hexdigest() + + timestamp = os.path.join(system.get_global_settings("PORTDIR"), "metadata/timestamp") + hashes["ROOT"] = hashlib.md5("%s %s" % (timestamp, os.stat(timestamp).st_mtime)).hexdigest() + + dbpath = os.path.join(SESSION_DIR, "portdirs.db") + db_existed = os.path.exists(dbpath) + db = anydbm.open(dbpath, "c") + try: + if db_existed: + debug("portdirs.db already existant") + for key in set(db.keys())- set(hashes.keys()): + debug("Overlay '%s' has been removed", key) + del db[key] + changed = True + + for key in hashes.iterkeys(): + + if key not in db.keys(): + debug("Overlay '%s' has been added.", key) + changed = True + + elif db[key] != hashes[key]: + debug("Overlay '%s' has been changed.", key) + changed = True + + db[key] = hashes[key] + else: + debug("portdirs.db not existant") + for key in hashes.iterkeys(): + db[key] = hashes[key] + + finally: + db.close() + + return changed + + def con (f): + @wraps(f) + def wrapper (*args, **kwargs): + if not "connection" in kwargs: + con= sql.connect(os.path.join(SESSION_DIR, "package.db")) + con.row_factory = sql.Row + kwargs["connection"] = con + + return f(*args, **kwargs) + + return wrapper + + @lock + @con + def populate (self, category = None, connection = None): + def _get(): + # get the lists + inst = system.find_packages(pkgSet = system.SET_INSTALLED, key=category, with_version = False) + for p in system.find_packages(key = category, with_version = False): + cat, pkg = p.split("/") + + yield (cat, pkg, p in inst) + + connection.executemany("INSERT INTO packages (cat, name, inst) VALUES (?, ?, ?)", _get()) + connection.commit() + + @lock + @con + def get_cat (self, category = None, byName = True, connection = None): + sort = "ORDER BY name" + if not byName: + sort = "ORDER BY inst DESC, name" + + if not category or category == self.ALL: + c = connection.execute("SELECT cat, name, inst FROM packages WHERE 1=1 %s %s" % (self.restrict, sort)) + else: + c = connection.execute("SELECT cat, name, inst FROM packages WHERE cat = ? %s %s" % (self.restrict ,sort), (category,)) + + for pkg in c: + yield PkgData(pkg["cat"], pkg["name"], pkg["inst"]) + c.close() + + @lock + @con + def get_categories (self, installed = False, connection = None): + + if installed: + where = "inst = 1" + else: + where = "1 = 1" + + c = connection.execute("SELECT cat FROM packages WHERE %s %s GROUP BY cat" % (where, self.restrict)) + + l = c.fetchall() + c.close() + + if len(l) > 1: + yield self.ALL + + for cat in l: + yield cat["cat"] + + @lock + @con + def reload (self, cat = None, connection = None): + if cat: + connection.execute("DELETE FROM packages WHERE cat = ?", (cat,)) + connection.commit() + self.populate(cat+"/", connection = connection) + else: + connection.execute("DELETE FROM packages") + connection.commit() + self.populate(connection = connection) + + def get_restrict (self): + return self._restrict + + @lock + def set_restrict (self, restrict): + if not restrict: + self._restrict = "" + else: + self._restrict = "AND name LIKE '%%%s%%'" % restrict + + restrict = property(get_restrict, set_restrict) diff --git a/portato/gui/templates/AboutWindow.glade b/portato/gui/templates/AboutWindow.glade index e4aace4..9c966b2 100644 --- a/portato/gui/templates/AboutWindow.glade +++ b/portato/gui/templates/AboutWindow.glade @@ -15,7 +15,7 @@ <property name="urgency_hint">True</property> <property name="has_separator">False</property> <property name="program_name">Portato</property> - <property name="copyright" translatable="yes">This software is licensed under the terms of the GPLv2. + <property name="copyright">This software is licensed under the terms of the GPLv2. Copyright (C) 2006-2009 René 'Necoro' Neumann <necoro@necoro.net></property> <property name="comments">A Portage GUI</property> <property name="website">http://portato.necoro.net</property> diff --git a/portato/gui/utils.py b/portato/gui/utils.py index d8af545..c9eae69 100644 --- a/portato/gui/utils.py +++ b/portato/gui/utils.py @@ -13,29 +13,17 @@ from __future__ import absolute_import, with_statement # some stuff needed -import re -import sys, os +import sys import logging import gettext -from collections import defaultdict -from threading import Thread, RLock -from functools import wraps +from threading import Thread import gtk # some backend things -from ..backend import flags, system, set_system +from ..backend import flags, set_system from ..helper import debug, info, set_log_level -from ..constants import APP, LOCALE_DIR, USE_SQL, SESSION_DIR - -if USE_SQL: - try: - import sqlite3 as sql - except ImportError: - from pysqlite2 import dbapi2 as sql - - import anydbm - import hashlib +from ..constants import APP, LOCALE_DIR # parser from ..config_parser import ConfigParser @@ -156,411 +144,3 @@ class Config (ConfigParser): """Writes to the config file and modify any external configs.""" ConfigParser.write(self) self.modify_external_configs() - -class PkgData (object): - __slots__ = ("cat", "pkg", "inst") - - def __init__ (self, cat, pkg, inst): - self.cat = cat - self.pkg = pkg - self.inst = inst - - def __iter__ (self): - return iter((self.cat, self.pkg, self.inst)) - - def __cmp__ (self, other): - return cmp(self.pkg.lower(), other.pkg.lower()) - - def __repr__ (self): - return "<Package (%(cat)s, %(pkg)s, %(inst)s)>" % {"cat" : self.cat, "pkg" : self.pkg, "inst" : self.inst} - -class DictDatabase (object): - """An internal database which holds a simple dictionary cat -> [package_list].""" - - ALL = _("ALL") - - def __init__ (self): - """Constructor.""" - self.__initialize() - self._lock = RLock() - self.populate() - - def lock (f): - @wraps(f) - def wrapper (self, *args, **kwargs): - with self._lock: - r = f(self, *args, **kwargs) - return r - - return wrapper - - def __initialize (self): - self._db = defaultdict(list) - self.inst_cats = set([self.ALL]) - self._restrict = None - - def __sort_key (self, x): - return x.pkg.lower() - - @lock - def populate (self, category = None): - """Populates the database. - - @param category: An optional category - so only packages of this category are inserted. - @type category: string - """ - - # get the lists - packages = system.find_packages(category, with_version = False) - installed = system.find_packages(category, system.SET_INSTALLED, with_version = False) - - # cycle through packages - for p in packages: - cat, pkg = p.split("/") - inst = p in installed - t = PkgData(cat, pkg, inst) - self._db[cat].append(t) - self._db[self.ALL].append(t) - - if inst: - self.inst_cats.add(cat) - - for key in self._db: # sort alphabetically - self._db[key].sort(key = self.__sort_key) - - @lock - def get_cat (self, cat = None, byName = True): - """Returns the packages in the category. - - @param cat: category to return the packages from; if None it defaults to "ALL" - @type cat: string - @param byName: selects whether to return the list sorted by name or by installation - @type byName: boolean - @return: an iterator over a list of tuples: (category, name, is_installed) or [] - @rtype: (string, string, boolean)<iterator> - """ - - if not cat: - cat = self.ALL - - def get_pkgs(): - if byName: - for pkg in self._db[cat]: - yield pkg - else: - ninst = [] - for pkg in self._db[cat]: - if pkg.inst: - yield pkg - else: - ninst.append(pkg) - - for pkg in ninst: - yield pkg - - try: - if self.restrict: - return (pkg for pkg in get_pkgs() if self.restrict.search(pkg.pkg))#if pkg[1].find(self.restrict) != -1) - else: - return get_pkgs() - - except KeyError: # cat is in category list - but not in portage - info(_("Catched KeyError => %s seems not to be an available category. Have you played with rsync-excludes?"), cat) - - @lock - def get_categories (self, installed = False): - """Returns all categories. - - @param installed: Only return these with at least one installed package. - @type installed: boolean - @returns: the list of categories - @rtype: string<iterator> - """ - - if not self.restrict: - if installed: - cats = self.inst_cats - else: - cats = self._db.iterkeys() - - else: - if installed: - cats = set((pkg.cat for pkg in self.get_cat(self.ALL) if pkg.inst)) - else: - cats = set((pkg.cat for pkg in self.get_cat(self.ALL))) - - if len(cats)>1: - cats.add(self.ALL) - - return (cat for cat in cats) - - @lock - def reload (self, cat = None): - """Reloads the given category. - - @param cat: category - @type cat: string - """ - - if cat: - del self._db[cat] - try: - self.inst_cats.remove(cat) - except KeyError: # not in inst_cats - can be ignored - pass - - self._db[self.ALL] = filter(lambda x: x.cat != cat, self._db[self.ALL]) - self.populate(cat+"/*") - else: - self.__initialize() - self.populate() - - def get_restrict (self): - return self._restrict - - @lock - def set_restrict (self, restrict): - if not restrict: - self._restrict = None - else: - try: - regex = re.compile(restrict, re.I) - except re.error, e: - info(_("Error while compiling search expression: '%s'."), str(e)) - else: # only set self._restrict if no error occurred - self._restrict = regex - - restrict = property(get_restrict, set_restrict) - -class SQLDatabase (object): - - ALL = _("ALL") - FORBIDDEN = (".bzr", ".svn", ".git", "CVS", ".hg", "_darcs") - - def __init__ (self): - """Constructor.""" - self._restrict = "" - self._lock = RLock() - - pkgdb = os.path.join(SESSION_DIR, "package.db") - pkgdb_existed = os.path.exists(pkgdb) - - if pkgdb_existed: - debug("package.db already existant") - else: - debug("package.db not existant") - - pkg_conn = sql.connect(os.path.join(SESSION_DIR, "package.db")) - pkg_conn.row_factory = sql.Row - pkg_conn.execute(""" - CREATE TABLE IF NOT EXISTS packages - ( - name TEXT, - cat TEXT, - inst INTEGER - )""") - - pkg_conn.commit() - - self.was_updated = self.updated() - if self.was_updated or not pkgdb_existed: - info(_("Cleaning database...")) - pkg_conn.execute("DELETE FROM packages") # empty db at beginning - info(_("Populating database...")) - self.populate(connection = pkg_conn) - - pkg_conn.close() - - descr_conn = sql.connect(os.path.join(SESSION_DIR, "descr.db")) - descr_conn.execute(""" - CREATE TABLE IF NOT EXISTS descriptions - ( - cp TEXT, - descr TEXT - )""") - descr_conn.close() - - def updated (self): - changed = False - - def walk (path): - debug("Walking %s", path) - - for root, dirs, files in os.walk(path): - for f in files: - path = os.path.join(root, f) - yield "%s %s" % (f, os.stat(path).st_mtime) - - for forbidden in self.FORBIDDEN: - if forbidden in dirs: - dirs.remove(forbidden) - - overlays = system.get_global_settings("PORTDIR_OVERLAY").split() - hashes = {} - for overlay in overlays: - hashes[overlay] = hashlib.md5("".join(walk(overlay))).hexdigest() - - timestamp = os.path.join(system.get_global_settings("PORTDIR"), "metadata/timestamp") - hashes["ROOT"] = hashlib.md5("%s %s" % (timestamp, os.stat(timestamp).st_mtime)).hexdigest() - - dbpath = os.path.join(SESSION_DIR, "portdirs.db") - db_existed = os.path.exists(dbpath) - db = anydbm.open(dbpath, "c") - try: - if db_existed: - debug("portdirs.db already existant") - for key in set(db.keys())- set(hashes.keys()): - debug("Overlay '%s' has been removed", key) - del db[key] - changed = True - - for key in hashes.iterkeys(): - - if key not in db.keys(): - debug("Overlay '%s' has been added.", key) - changed = True - - elif db[key] != hashes[key]: - debug("Overlay '%s' has been changed.", key) - changed = True - - db[key] = hashes[key] - else: - debug("portdirs.db not existant") - for key in hashes.iterkeys(): - db[key] = hashes[key] - - finally: - db.close() - - return changed - - def lock (f): - @wraps(f) - def wrapper (self, *args, **kwargs): - with self._lock: - r = f(self, *args, **kwargs) - - return r - - return wrapper - - def con (f): - @wraps(f) - def wrapper (*args, **kwargs): - if not "connection" in kwargs: - con= sql.connect(os.path.join(SESSION_DIR, "package.db")) - con.row_factory = sql.Row - kwargs["connection"] = con - - return f(*args, **kwargs) - - return wrapper - - @lock - @con - def populate (self, category = None, connection = None): - """Populates the database. - - @param category: An optional category - so only packages of this category are inserted. - @type category: string - """ - - def _get(): - # get the lists - inst = system.find_packages(pkgSet = system.SET_INSTALLED, key=category, with_version = False) - for p in system.find_packages(key = category, with_version = False): - cat, pkg = p.split("/") - - yield (cat, pkg, p in inst) - - connection.executemany("INSERT INTO packages (cat, name, inst) VALUES (?, ?, ?)", _get()) - connection.commit() - - @lock - @con - def get_cat (self, category = None, byName = True, connection = None): - """Returns the packages in the category. - - @param cat: category to return the packages from; if None it defaults to "ALL" - @type cat: string - @param byName: selects whether to return the list sorted by name or by installation - @type byName: boolean - @return: an iterator over a list of tuples: (category, name, is_installed) or [] - @rtype: L{PkgData}<iterator> - """ - - sort = "ORDER BY name" - if not byName: - sort = "ORDER BY inst DESC, name" - - if not category or category == self.ALL: - c = connection.execute("SELECT cat, name, inst FROM packages WHERE 1=1 %s %s" % (self.restrict, sort)) - else: - c = connection.execute("SELECT cat, name, inst FROM packages WHERE cat = ? %s %s" % (self.restrict ,sort), (category,)) - - for pkg in c: - yield PkgData(pkg["cat"], pkg["name"], pkg["inst"]) - c.close() - - @lock - @con - def get_categories (self, installed = False, connection = None): - """Returns all categories. - - @param installed: Only return these with at least one installed package. - @type installed: boolean - @returns: the list of categories - @rtype: string<iterator> - """ - - if installed: - where = "inst = 1" - else: - where = "1 = 1" - - c = connection.execute("SELECT cat FROM packages WHERE %s %s GROUP BY cat" % (where, self.restrict)) - - l = c.fetchall() - c.close() - - if len(l) > 1: - yield self.ALL - - for cat in l: - yield cat["cat"] - - @lock - @con - def reload (self, cat = None, connection = None): - """Reloads the given category. - - @param cat: category - @type cat: string - """ - - if cat: - connection.execute("DELETE FROM packages WHERE cat = ?", (cat,)) - connection.commit() - self.populate(cat+"/", connection = connection) - else: - connection.execute("DELETE FROM packages") - connection.commit() - self.populate(connection = connection) - - def get_restrict (self): - return self._restrict - - @lock - def set_restrict (self, restrict): - if not restrict: - self._restrict = "" - else: - self._restrict = "AND name LIKE '%%%s%%'" % restrict - - restrict = property(get_restrict, set_restrict) - -if USE_SQL: - Database = SQLDatabase -else: - Database = DictDatabase diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index d66ca0c..e51897f 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -26,11 +26,12 @@ from ...backend import flags, system # must be the first to avoid circular deps from ... import get_listener, plugin from ...helper import debug, warning, error, info, unique_array from ...session import Session +from ...db import Database from ...constants import CONFIG_LOCATION, VERSION, APP_ICON, ICON_DIR from ...backend.exceptions import PackageNotFoundException, BlockedException # more GUI stuff -from ..utils import Database, Config, GtkThread, get_color +from ..utils import Config, GtkThread, get_color from ..queue import EmergeQueue from ..session import SESSION_VERSION, SessionException, OldSessionException, NewSessionException from ..wrapper import GtkTree, GtkConsole |