summaryrefslogtreecommitdiffstats
path: root/perl-install/share
diff options
context:
space:
mode:
authorrstandtke <rstandtke@mandriva.org>2005-03-21 20:49:37 +0000
committerrstandtke <rstandtke@mandriva.org>2005-03-21 20:49:37 +0000
commit0cc17de48fd8c1eb0ea4b27dab2553d1de48a084 (patch)
tree6ffcadcde0ac249568ce2e3c909d2c1fad983fd0 /perl-install/share
parentc5bb70dce0219701d953ed68da980e92ec1f4f9d (diff)
downloaddrakx-0cc17de48fd8c1eb0ea4b27dab2553d1de48a084.tar
drakx-0cc17de48fd8c1eb0ea4b27dab2553d1de48a084.tar.gz
drakx-0cc17de48fd8c1eb0ea4b27dab2553d1de48a084.tar.bz2
drakx-0cc17de48fd8c1eb0ea4b27dab2553d1de48a084.tar.xz
drakx-0cc17de48fd8c1eb0ea4b27dab2553d1de48a084.zip
some additions
Diffstat (limited to 'perl-install/share')
-rw-r--r--perl-install/share/po/de.po310
1 files changed, 107 insertions, 203 deletions
diff --git a/perl-install/share/po/de.po b/perl-install/share/po/de.po
index 2f60e787e..0aba0219d 100644
--- a/perl-install/share/po/de.po
+++ b/perl-install/share/po/de.po
@@ -1,3 +1,4 @@
+# translation of de.po to
# translation of de.po to deutsch
# translation of DrakX-de.po to deutsch
# translation of de.po to Deutsch
@@ -17,7 +18,7 @@ msgid ""
msgstr ""
"Project-Id-Version: de\n"
"POT-Creation-Date: 2005-02-24 14:10+0100\n"
-"PO-Revision-Date: 2005-03-02 22:17+0100\n"
+"PO-Revision-Date: 2005-03-21 21:45+0100\n"
"Last-Translator: Ronny Standtke <Ronny.Standtke@gmx.net>\n"
"Language-Team: <de@li.org>\n"
"MIME-Version: 1.0\n"
@@ -809,7 +810,7 @@ msgstr "Um welche Fernsehnorm handelt es sich?"
msgid ""
"_:weird aspect ratio\n"
"other"
-msgstr ""
+msgstr "andere"
#: any.pm:140 harddrake/sound.pm:191 install_any.pm:652 interactive.pm:462
#: standalone/drakconnect:167 standalone/drakconnect:613 standalone/draksec:68
@@ -928,8 +929,7 @@ msgstr "Geben Sie die RAM-Größe in MB an"
#: any.pm:272
#, c-format
-msgid ""
-"Option ``Restrict command line options'' is of no use without a password"
+msgid "Option ``Restrict command line options'' is of no use without a password"
msgstr ""
"Die Option „Gebrauch der Kommandozeilen-Parameter einschränken“ ist ohne \n"
"Angabe eines Passwortes wirkungslos."
@@ -1189,8 +1189,7 @@ msgstr "Bitte geben Sie einen Benutzernamen an"
#: any.pm:609
#, c-format
-msgid ""
-"The user name must contain only lower cased letters, numbers, `-' and `_'"
+msgid "The user name must contain only lower cased letters, numbers, `-' and `_'"
msgstr ""
"Der Benutzername sollte nur aus Kleinbuchstaben, Ziffern, \n"
"„-“ und „_“ bestehen"
@@ -1390,8 +1389,7 @@ msgstr ""
#: any.pm:941
#, c-format
-msgid ""
-"You can export using NFS or SMB. Please select which you would like to use."
+msgid "You can export using NFS or SMB. Please select which you would like to use."
msgstr ""
"Sie können die Dateien mittels SMB oder NFS anbieten. Welche Variante wollen "
"Sie?"
@@ -1462,8 +1460,7 @@ msgstr "Lokale Datei:"
#: authentication.pm:51
#, c-format
-msgid ""
-"Use local for all authentication and information user tell in local file"
+msgid "Use local for all authentication and information user tell in local file"
msgstr ""
"Verwende lokal für alle Authentifizierungen und Informationen in lokalen "
"Dateien"
@@ -1518,8 +1515,7 @@ msgstr "Active Directory mit SFU:"
#: authentication.pm:55 authentication.pm:56
#, c-format
-msgid ""
-"Kerberos is a secure system for providing network authentication services."
+msgid "Kerberos is a secure system for providing network authentication services."
msgstr ""
"Kerberos ist ein sicheres System zur Bereitstellung von Netzwerk-"
"Authentifizierungs-Diensten."
@@ -1702,8 +1698,7 @@ msgstr "Kein Passwort"
#: authentication.pm:178
#, c-format
msgid "This password is too short (it must be at least %d characters long)"
-msgstr ""
-"Dieses Passwort ist zu einfach (es muss mindestens %d Zeichen lang sein)!"
+msgstr "Dieses Passwort ist zu einfach (es muss mindestens %d Zeichen lang sein)!"
#: authentication.pm:183 network/netconnect.pm:328 network/netconnect.pm:634
#: standalone/drakauth:23 standalone/drakauth:25 standalone/drakconnect:459
@@ -2378,8 +2373,7 @@ msgstr "Die Loopback-Datei entfernen?"
#: diskdrake/interactive.pm:590
#, c-format
-msgid ""
-"After changing type of partition %s, all data on this partition will be lost"
+msgid "After changing type of partition %s, all data on this partition will be lost"
msgstr ""
"Nach Änderung des Partitionstyps von %s, werden sämtliche Daten darauf "
"gelöscht."
@@ -2561,8 +2555,7 @@ msgstr "Welcher Partitionstyp?"
#: diskdrake/interactive.pm:1074
#, c-format
msgid "You'll need to reboot before the modification can take place"
-msgstr ""
-"Sie müssen Ihren Rechner neu starten, damit die Veränderungen wirksam werden."
+msgstr "Sie müssen Ihren Rechner neu starten, damit die Veränderungen wirksam werden."
#: diskdrake/interactive.pm:1083
#, c-format
@@ -2572,8 +2565,7 @@ msgstr "Die Partitionstabelle der Platte „%s“ wird gespeichert!"
#: diskdrake/interactive.pm:1096
#, c-format
msgid "After formatting partition %s, all data on this partition will be lost"
-msgstr ""
-"Nach Formatieren der Partition %s, werden sämtliche Daten darauf gelöscht."
+msgstr "Nach Formatieren der Partition %s, werden sämtliche Daten darauf gelöscht."
#: diskdrake/interactive.pm:1112
#, c-format
@@ -2810,8 +2802,7 @@ msgstr "Wählen Sie Ihren Dateisystem-Schlüssel (Passwort)"
#: diskdrake/interactive.pm:1269
#, c-format
msgid "This encryption key is too simple (must be at least %d characters long)"
-msgstr ""
-"Dieses Passwort ist zu einfach (es muss mindestens %d Zeichen lang sein)!"
+msgstr "Dieses Passwort ist zu einfach (es muss mindestens %d Zeichen lang sein)!"
#: diskdrake/interactive.pm:1270
#, c-format
@@ -2856,8 +2847,7 @@ msgstr "Anderer"
#: diskdrake/smbnfs_gtk.pm:177
#, c-format
-msgid ""
-"Please enter your username, password and domain name to access this host."
+msgid "Please enter your username, password and domain name to access this host."
msgstr "Bitte geben Sie Benutzername, Passwort und Domäne des Rechners an."
#: diskdrake/smbnfs_gtk.pm:179 standalone/drakbackup:3494
@@ -3030,8 +3020,7 @@ msgstr "Schreib-Zugriff für den normalen Benutzer"
#: fs/type.pm:370
#, c-format
msgid "You can not use JFS for partitions smaller than 16MB"
-msgstr ""
-"Sie können JFS nicht für Partitionen verwenden, die kleiner als 16MB sind!"
+msgstr "Sie können JFS nicht für Partitionen verwenden, die kleiner als 16MB sind!"
#: fs/type.pm:371
#, c-format
@@ -3103,8 +3092,7 @@ msgstr ""
#: fsedit.pm:408
#, c-format
msgid "You can not use a LVM Logical Volume for mount point %s"
-msgstr ""
-"Sie können kein logisches LVM-Medium für den Einhängepunkt %s verwenden."
+msgstr "Sie können kein logisches LVM-Medium für den Einhängepunkt %s verwenden."
#: fsedit.pm:410
#, c-format
@@ -3144,15 +3132,13 @@ msgstr ""
#: fsedit.pm:424
#, c-format
msgid "You can not use an encrypted file system for mount point %s"
-msgstr ""
-"Sie können kein verschlüsseltes Medium für den Einhängepunkt %s verwenden."
+msgstr "Sie können kein verschlüsseltes Medium für den Einhängepunkt %s verwenden."
# ../../diskdrak1
#: fsedit.pm:485
#, c-format
msgid "Not enough free space for auto-allocating"
-msgstr ""
-"Nicht genug freier Platz, damit ich selbst eine Partition anlegen kann."
+msgstr "Nicht genug freier Platz, damit ich selbst eine Partition anlegen kann."
#: fsedit.pm:487
#, c-format
@@ -3375,7 +3361,7 @@ msgstr ""
"Hier können Sie einen alternativen Treiber (entweder OSS oder ALSA) für Ihre "
"Soundkarte (%s) auswählen"
-#. -PO: here the first %s is either "OSS" or "ALSA",
+#. -PO: here the first %s is either "OSS" or "ALSA",
#. -PO: the second %s is the name of the current driver
#. -PO: and the third %s is the name of the default driver
#: harddrake/sound.pm:241
@@ -7200,8 +7186,7 @@ msgstr ""
#: install_steps_interactive.pm:820
#, c-format
-msgid ""
-"Contacting Mandrakelinux web site to get the list of available mirrors..."
+msgid "Contacting Mandrakelinux web site to get the list of available mirrors..."
msgstr ""
"Kontaktiere Mandrakelinux Web-Server, um eine Liste verfügbarer Pakete zu "
"erhalten..."
@@ -7439,10 +7424,8 @@ msgstr "Mandrakelinux-Installation %s"
#. -PO: This string must fit in a 80-char wide text screen
#: install_steps_newt.pm:34
#, c-format
-msgid ""
-" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen "
-msgstr ""
-" <Tab>/<Alt-Tab> nächstes Element | <Leertaste> auswählen | <F12> weiter "
+msgid " <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen "
+msgstr " <Tab>/<Alt-Tab> nächstes Element | <Leertaste> auswählen | <F12> weiter "
#: interactive.pm:184
#, c-format
@@ -9940,9 +9923,9 @@ msgid "Any PS/2 & USB mice"
msgstr "Einige PS/2 & USB Mäuse"
#: mouse.pm:89
-#, fuzzy, c-format
+#, c-format
msgid "Microsoft Xbox Controller S"
-msgstr "Microsoft Explorer"
+msgstr "Microsoft Xbox Controller S"
#: mouse.pm:89 mouse.pm:359 mouse.pm:368 mouse.pm:420
#, c-format
@@ -10951,24 +10934,24 @@ msgid "DHCP client"
msgstr "DHCP-Client"
#: network/netconnect.pm:1041 standalone/drakconnect:389
-#, fuzzy, c-format
+#, c-format
msgid "DHCP timeout (in seconds)"
-msgstr "Verbindungs-Timeout (in Sec)"
+msgstr "DHCP-Zeitschranke (in Sekunden)"
#: network/netconnect.pm:1042 standalone/drakconnect:392
-#, fuzzy, c-format
+#, c-format
msgid "Get DNS servers from DHCP"
-msgstr "Die IP des DNS-Servers"
+msgstr "DNS-Server via DHCP bekommen"
#: network/netconnect.pm:1043
#, c-format
msgid "Get YP servers from DHCP"
-msgstr ""
+msgstr "YP-Server via DHCP bekommen"
#: network/netconnect.pm:1044
#, c-format
msgid "Get NTPD servers from DHCP"
-msgstr ""
+msgstr "NTPD-Server via DHCP bekommen"
#: network/netconnect.pm:1037 printer/printerdrake.pm:1605
#: standalone/drakconnect:649
@@ -10977,9 +10960,9 @@ msgid "IP address should be in format 1.2.3.4"
msgstr "Die IP-Adresse sollte etwa die Form „192.168.1.42“ haben!"
#: network/netconnect.pm:1057 standalone/drakconnect:686
-#, fuzzy, c-format
+#, c-format
msgid "Netmask should be in format 255.255.224.0"
-msgstr "Die IP-Adresse des Gateways sollte etwa die Form „192.168.1.42“ haben!"
+msgstr "Die Netzmaske sollte das Format 255.255.224.0 haben"
#: network/netconnect.pm:1041
#, c-format
@@ -11020,8 +11003,7 @@ msgstr "Bitte wählen Sie den Windowstreiber (.inf Datei)"
#: network/netconnect.pm:1126 network/netconnect.pm:1155
#, c-format
msgid "Please enter the wireless parameters for this card:"
-msgstr ""
-"Bitte geben Sie die Parameter für die drahtlose Verbindung dieser Karte ein:"
+msgstr "Bitte geben Sie die Parameter für die drahtlose Verbindung dieser Karte ein:"
#: network/netconnect.pm:1129 standalone/drakconnect:382
#, c-format
@@ -11056,7 +11038,7 @@ msgstr "Bitrate (in b/s)"
#: network/netconnect.pm:1141
#, c-format
msgid "Use Wi-Fi Protected Access (WPA)"
-msgstr ""
+msgstr "Benutze Wi-Fi Protected Access (WPA)"
#: network/netconnect.pm:1168
#, c-format
@@ -11255,8 +11237,7 @@ msgstr "Gateway-Gerät"
#: network/netconnect.pm:1283
#, c-format
msgid "DNS server address should be in format 1.2.3.4"
-msgstr ""
-"Die IP-Adresse des DNS-Servers sollte etwa die Form „192.168.1.42“ haben!"
+msgstr "Die IP-Adresse des DNS-Servers sollte etwa die Form „192.168.1.42“ haben!"
#: network/netconnect.pm:1288 standalone/drakconnect:652
#, c-format
@@ -11308,9 +11289,9 @@ msgid "Configuration is complete, do you want to apply settings?"
msgstr "Konfiguration ist vollständig, wollen Sie diese jetzt anwenden ?"
#: network/netconnect.pm:1336
-#, fuzzy, c-format
+#, c-format
msgid "Do you want to allow users to start the connection?"
-msgstr "Möchten Sie die Verbindung beim Systemstart herstellen?"
+msgstr "Möchten Sie Benutzern erlauben, diese Verbindung zu starten?"
#: network/netconnect.pm:1345
#, c-format
@@ -12353,8 +12334,7 @@ msgstr ""
#: printer/printerdrake.pm:621
#, c-format
-msgid ""
-"Printer auto-detection (Local, TCP/Socket, SMB printers, and device URI)"
+msgid "Printer auto-detection (Local, TCP/Socket, SMB printers, and device URI)"
msgstr "Autoerkennung von Druckern (Lokal, TCP/Socket, SMB und Geräte-URI)"
#: printer/printerdrake.pm:623
@@ -12459,8 +12439,7 @@ msgstr ""
#: printer/printerdrake.pm:707
#, c-format
-msgid ""
-"There are no printers found which are directly connected to your machine"
+msgid "There are no printers found which are directly connected to your machine"
msgstr "Ich konnte keine Drucker direkt an Ihrem Rechner finden."
#: printer/printerdrake.pm:710
@@ -12746,9 +12725,9 @@ msgid "Auto-detect printers connected to machines running Microsoft Windows"
msgstr "Selbsterkennung von Druckern, die an Windows-Rechnern hängen"
#: printer/printerdrake.pm:1108
-#, fuzzy, c-format
+#, c-format
msgid "No auto-detection"
-msgstr "Automatische Erkennung"
+msgstr "Keine automatische Erkennung"
#: printer/printerdrake.pm:1173
#, c-format
@@ -12887,8 +12866,7 @@ msgstr ""
#: printer/printerdrake.pm:1313
#, c-format
-msgid ""
-"Alternatively, you can specify a device name/file name in the input line"
+msgid "Alternatively, you can specify a device name/file name in the input line"
msgstr ""
"Alternativ können Sie einen Geräte- oder Dateinamen in der Eingabezeile "
"angeben"
@@ -13418,8 +13396,7 @@ msgstr "Nur Drucken wird möglich sein auf %s."
#: printer/printerdrake.pm:2160
#, c-format
msgid "Could not remove your old HPOJ configuration file %s for your %s! "
-msgstr ""
-"Konnte Ihre alte HPOJ Konfigurationsdatei %s für Ihren %s nicht löschen! "
+msgstr "Konnte Ihre alte HPOJ Konfigurationsdatei %s für Ihren %s nicht löschen! "
#: printer/printerdrake.pm:2162
#, c-format
@@ -13495,8 +13472,7 @@ msgstr "Geben Sie Druckername und Kommentare ein"
#: printer/printerdrake.pm:2678 printer/printerdrake.pm:3965
#, c-format
msgid "Name of printer should contain only letters, numbers and the underscore"
-msgstr ""
-"Druckernamen sollten nur Buchstaben, Ziffern und den Unterstrich unterhalten"
+msgstr "Druckernamen sollten nur Buchstaben, Ziffern und den Unterstrich unterhalten"
#: printer/printerdrake.pm:2684 printer/printerdrake.pm:3970
#, c-format
@@ -13634,8 +13610,7 @@ msgstr ""
#: printer/printerdrake.pm:2922
#, c-format
msgid "You can find the PPD files also on the manufacturer's web sites."
-msgstr ""
-"Sie können die PPD-Datei auch von den Hersteller-Homepages runterladen."
+msgstr "Sie können die PPD-Datei auch von den Hersteller-Homepages runterladen."
#: printer/printerdrake.pm:2923
#, c-format
@@ -14630,8 +14605,7 @@ msgstr ""
#: printer/printerdrake.pm:4355
#, c-format
msgid "2. All printing requests are immediately sent to a remote CUPS server. "
-msgstr ""
-"2. Alle Druckaufträge werden sofort zu einem entfernten CUPS-Server gesendet."
+msgstr "2. Alle Druckaufträge werden sofort zu einem entfernten CUPS-Server gesendet."
#: printer/printerdrake.pm:4356
#, c-format
@@ -14694,8 +14668,7 @@ msgstr "Installiere das Paket Foomatic ..."
#: printer/printerdrake.pm:4484
#, c-format
msgid "Could not install %s packages, %s cannot be started!"
-msgstr ""
-"Konnte die %s Pakete nicht installieren, %s kann nicht gestartet werden!"
+msgstr "Konnte die %s Pakete nicht installieren, %s kann nicht gestartet werden!"
#: printer/printerdrake.pm:4674
#, c-format
@@ -14878,8 +14851,7 @@ msgstr "Konnte Verknüpfung /usr/share/sane/%s nicht erstellen!"
#: scanner.pm:114
#, c-format
msgid "Could not copy firmware file %s to /usr/share/sane/firmware!"
-msgstr ""
-"Ich konnte die Firmware Datei %s nicht auf /usr/share/sane/firmware kopieren!"
+msgstr "Ich konnte die Firmware Datei %s nicht auf /usr/share/sane/firmware kopieren!"
#: scanner.pm:121
#, c-format
@@ -14946,8 +14918,7 @@ msgstr ""
#: security/help.pm:27
#, c-format
msgid "Allow/Forbid reboot by the console user."
-msgstr ""
-"Den Neustart des Rechners durch den Konsolen Benutzer erlauben/verbieten."
+msgstr "Den Neustart des Rechners durch den Konsolen Benutzer erlauben/verbieten."
#: security/help.pm:29
#, c-format
@@ -15098,8 +15069,7 @@ msgstr "Aktiviere/Deaktiviere IP Spoofing Schutz"
#: security/help.pm:84
#, c-format
msgid "Enable/Disable libsafe if libsafe is found on the system."
-msgstr ""
-"Aktiviere/Deaktiviere libsafe wenn libsafe auf dem System gefunden wird."
+msgstr "Aktiviere/Deaktiviere libsafe wenn libsafe auf dem System gefunden wird."
#: security/help.pm:86
#, c-format
@@ -15113,8 +15083,7 @@ msgstr "Stündliche Sicherheitschecks aktivieren/deaktivieren."
#: security/help.pm:90
#, c-format
-msgid ""
-" Enabling su only from members of the wheel group or allow su from any user."
+msgid " Enabling su only from members of the wheel group or allow su from any user."
msgstr ""
"Aktiviere su nur für Mitglieder der Gruppe „wheel“ oder erlaube su für jeden "
"Benutzer."
@@ -15149,8 +15118,7 @@ msgstr ""
#: security/help.pm:102
#, c-format
msgid "Set password aging to \"max\" days and delay to change to \"inactive\"."
-msgstr ""
-"Setze Passwort-Alterung auf „maximal“ Tage um die Alterung abzuschalten."
+msgstr "Setze Passwort-Alterung auf „maximal“ Tage um die Alterung abzuschalten."
#: security/help.pm:104
#, c-format
@@ -15229,14 +15197,12 @@ msgstr "Wenn auf „Ja“ gesetzt, prüfe auf leere Passwörter in /etc/shadow."
#: security/help.pm:122
#, c-format
msgid "if set to yes, verify checksum of the suid/sgid files."
-msgstr ""
-"Wenn auf „Ja“ gesetzt, kontrolliere die Prüfsumme der suid/sgid Dateien"
+msgstr "Wenn auf „Ja“ gesetzt, kontrolliere die Prüfsumme der suid/sgid Dateien"
#: security/help.pm:123
#, c-format
msgid "if set to yes, check additions/removals of suid root files."
-msgstr ""
-"Wenn auf „Ja“ gesetzt, Suche von Veränderungen bei „suid root“ Dateien."
+msgstr "Wenn auf „Ja“ gesetzt, Suche von Veränderungen bei „suid root“ Dateien."
#: security/help.pm:124
#, c-format
@@ -15257,10 +15223,8 @@ msgstr "Wenn auf „Ja“ gesetzt, starte chkrootkit Überprüfung"
#: security/help.pm:127
#, c-format
-msgid ""
-"if set, send the mail report to this email address else send it to root."
-msgstr ""
-"Wenn ausgefüllt, wird E-Mail an diese Adresse geschickt, sonst an „root“."
+msgid "if set, send the mail report to this email address else send it to root."
+msgstr "Wenn ausgefüllt, wird E-Mail an diese Adresse geschickt, sonst an „root“."
#: security/help.pm:128
#, c-format
@@ -15487,8 +15451,7 @@ msgstr "Prüfe auf ungesicherte Benutzerkonten"
#: security/l10n.pm:47
#, c-format
msgid "Check permissions of files in the users' home"
-msgstr ""
-"Überprüfe Dateiberechtigungen in den persönlichen Verzeichnissen (/home)"
+msgstr "Überprüfe Dateiberechtigungen in den persönlichen Verzeichnissen (/home)"
#: security/l10n.pm:48
#, c-format
@@ -15543,8 +15506,7 @@ msgstr "Keine unnötigen Emails senden"
#: security/l10n.pm:58
#, c-format
msgid "If set, send the mail report to this email address else send it to root"
-msgstr ""
-"Wenn ausgefüllt, wird E-Mail an diese Adresse geschickt, sonst an „root“."
+msgstr "Wenn ausgefüllt, wird E-Mail an diese Adresse geschickt, sonst an „root“."
#: security/l10n.pm:59
#, c-format
@@ -15679,8 +15641,7 @@ msgstr "„libsafe“ bei Servern verwenden"
#: security/level.pm:63
#, c-format
-msgid ""
-"A library which defends against buffer overflow and format string attacks."
+msgid "A library which defends against buffer overflow and format string attacks."
msgstr "Eine Bibliothek, die gegen sog. „buffer overflow“-Angriffe schützt."
#: security/level.pm:64
@@ -15772,8 +15733,7 @@ msgstr ""
#: services.pm:35
#, c-format
-msgid ""
-"Apache is a World Wide Web server. It is used to serve HTML files and CGI."
+msgid "Apache is a World Wide Web server. It is used to serve HTML files and CGI."
msgstr ""
"Apache ist ein World-Wide-Web-Server. Mit seiner Hilfe können Sie \n"
"HTML-Dateien über HTTP publizieren. Der Server ist CGI-fähig."
@@ -16298,8 +16258,7 @@ msgstr ""
#: share/advertising/05.pl:18
#, c-format
-msgid ""
-"\t* <b>Proprietary drivers</b> (such as drivers for NVIDIA®, ATI™, etc.)."
+msgid "\t* <b>Proprietary drivers</b> (such as drivers for NVIDIA®, ATI™, etc.)."
msgstr ""
"\t* <b>Proprietäre Treiber</b> (wie zum Beispiel Treiber für NVIDIA®, ATI™, "
"etc.)."
@@ -16492,8 +16451,7 @@ msgstr "\t* <b>Corporate Server</b>, die Mandrakelinux-Serverlösung."
#: share/advertising/11.pl:18
#, c-format
msgid "\t* <b>Multi-Network Firewall</b>, The Mandrakelinux Security Solution."
-msgstr ""
-"\t* <b>Multi-Network Firewall</b>, die Mandrakelinux-Sicherheitslösung."
+msgstr "\t* <b>Multi-Network Firewall</b>, die Mandrakelinux-Sicherheitslösung."
#: share/advertising/12.pl:13
#, c-format
@@ -16607,10 +16565,8 @@ msgstr "<b>Kontact</b>"
#: share/advertising/15.pl:15
#, c-format
-msgid ""
-"Discovery includes <b>Kontact</b>, the new KDE <b>groupware solution</b>."
-msgstr ""
-"Discovery beinhaltet <b>Kontact</b>, die neue KDE <b>Groupware-Lösung</b>."
+msgid "Discovery includes <b>Kontact</b>, the new KDE <b>groupware solution</b>."
+msgstr "Discovery beinhaltet <b>Kontact</b>, die neue KDE <b>Groupware-Lösung</b>."
#: share/advertising/15.pl:17
#, c-format
@@ -16640,8 +16596,7 @@ msgstr "<b>Im Internet surfen</b>"
#: share/advertising/16.pl:15
#, c-format
msgid "Discovery will give you access to <b>every Internet resource</b>:"
-msgstr ""
-"Discovery wird Ihnen Zugriff zu <b>allen Internet-Ressourcen</b> geben:"
+msgstr "Discovery wird Ihnen Zugriff zu <b>allen Internet-Ressourcen</b> geben:"
#: share/advertising/16.pl:16
#, c-format
@@ -16722,8 +16677,7 @@ msgstr ""
#: share/advertising/18.pl:18
#, c-format
msgid "\t* Browse the web with <b>Mozilla</b> and <b>Konqueror</b>."
-msgstr ""
-"\t* Durchstöbern Sie das Internet mit <b>Mozilla</b> und <b>Konqueror</b>"
+msgstr "\t* Durchstöbern Sie das Internet mit <b>Mozilla</b> und <b>Konqueror</b>"
#: share/advertising/18.pl:19
#, c-format
@@ -16751,8 +16705,7 @@ msgstr "<b>Entwicklungsumgebungen</b>"
#: share/advertising/19.pl:15 share/advertising/22.pl:15
#, c-format
-msgid ""
-"PowerPack gives you the best tools to <b>develop</b> your own applications."
+msgid "PowerPack gives you the best tools to <b>develop</b> your own applications."
msgstr ""
"PowerPack gibt Ihnen die besten Werkzeuge zum <b>Entwickeln</b> Ihrer "
"eigenen Anwendungen."
@@ -16784,8 +16737,7 @@ msgstr "<b>Entwicklungseditoren</b>"
#: share/advertising/20.pl:15
#, c-format
msgid "PowerPack will let you choose between those <b>popular editors</b>:"
-msgstr ""
-"PowerPack lässt Sie zwischen folgenden <b>beliebten Editoren</b> wählen:"
+msgstr "PowerPack lässt Sie zwischen folgenden <b>beliebten Editoren</b> wählen:"
#: share/advertising/20.pl:16
#, c-format
@@ -16803,8 +16755,7 @@ msgstr ""
#: share/advertising/20.pl:18
#, c-format
-msgid ""
-"\t* <b>Vim</b>: an advanced text editor with more features than standard Vi."
+msgid "\t* <b>Vim</b>: an advanced text editor with more features than standard Vi."
msgstr ""
"\t* <b>Vim</b>: Ein verbesserter Texteditor mit erweiterten Funktionen "
"gegenüber dem normalen Vi"
@@ -16918,18 +16869,15 @@ msgstr "<b>Server</b>"
#: share/advertising/24.pl:15
#, c-format
-msgid ""
-"Empower your business network with <b>premier server solutions</b> including:"
+msgid "Empower your business network with <b>premier server solutions</b> including:"
msgstr ""
"Steigern Sie die Leistungsfähigkeit Ihrers Business-Netzwerks mit "
"<b>erstklassigen Serverlösungen</b> mit:"
#: share/advertising/24.pl:16
#, c-format
-msgid ""
-"\t* <b>Samba</b>: File and print services for Microsoft® Windows® clients."
-msgstr ""
-"\t* <b>Samba</b>: Datei- und Druckdienste für Microsoft Windows Clients"
+msgid "\t* <b>Samba</b>: File and print services for Microsoft® Windows® clients."
+msgstr "\t* <b>Samba</b>: Datei- und Druckdienste für Microsoft Windows Clients"
#: share/advertising/24.pl:17
#, c-format
@@ -16956,10 +16904,8 @@ msgstr ""
#: share/advertising/24.pl:20
#, c-format
-msgid ""
-"\t* <b>ProFTPD</b>: The highly configurable GPL-licensed FTP server software."
-msgstr ""
-"\t* <b>ProFTP</b>: der stark konfigurierbare GPL-lizenzierte FTP-Server"
+msgid "\t* <b>ProFTPD</b>: The highly configurable GPL-licensed FTP server software."
+msgstr "\t* <b>ProFTP</b>: der stark konfigurierbare GPL-lizenzierte FTP-Server"
#: share/advertising/24.pl:21
#, c-format
@@ -17038,8 +16984,7 @@ msgstr ""
#: share/advertising/27.pl:17
#, c-format
msgid "There you can find all our products, services and third-party products."
-msgstr ""
-"Dort finden Sie all unsere Produkte, Dienstleistungen und Fremdprodukte."
+msgstr "Dort finden Sie all unsere Produkte, Dienstleistungen und Fremdprodukte."
#: share/advertising/27.pl:19
#, c-format
@@ -17071,8 +17016,7 @@ msgstr ""
#: share/advertising/28.pl:17
#, c-format
-msgid ""
-"Take advantage of <b>valuable benefits</b> by joining Mandrakeclub, such as:"
+msgid "Take advantage of <b>valuable benefits</b> by joining Mandrakeclub, such as:"
msgstr ""
"Profitieren Sie durch einen Beitritt in den Mandrakeclub von <b>wertvollen "
"Vorteilen</b>, wie beispielsweise:"
@@ -17135,8 +17079,7 @@ msgstr ""
#: share/advertising/29.pl:18
#, c-format
msgid "\t* <b>Perfect</b> system security (automated software updates)."
-msgstr ""
-"\t* <b>Perfekte</b> Systemsicherheit (automatische Softwareaktualisierungen)."
+msgstr "\t* <b>Perfekte</b> Systemsicherheit (automatische Softwareaktualisierungen)."
#: share/advertising/29.pl:19
#, c-format
@@ -17154,8 +17097,7 @@ msgstr "\t* Flexible <b>planmäßige</b> Aktualisierungen."
#: share/advertising/29.pl:21
#, c-format
-msgid ""
-"\t* Management of <b>all your Mandrakelinux systems</b> with one account."
+msgid "\t* Management of <b>all your Mandrakelinux systems</b> with one account."
msgstr "\t* Verwaltung <b>all Ihrer Mandrakelinux-Systeme</b> mit einem Konto."
#: share/advertising/30.pl:13
@@ -17444,8 +17386,7 @@ msgstr "Gnome-Arbeitsplatz"
msgid ""
"A graphical environment with user-friendly set of applications and desktop "
"tools"
-msgstr ""
-"Eine grafische Umgebung mit anwenderfreundlichen Anwendungen und Werkzeugen"
+msgstr "Eine grafische Umgebung mit anwenderfreundlichen Anwendungen und Werkzeugen"
#: share/compssUsers.pl:155
#, c-format
@@ -18499,8 +18440,7 @@ msgstr ""
#: standalone/drakTermServ:1156
#, c-format
msgid "Thin clients will not work with autologin. Disable autologin?"
-msgstr ""
-"Thin-Clients werden nicht mit AutoLogin funktionieren. AutoLogin ausschalten?"
+msgstr "Thin-Clients werden nicht mit AutoLogin funktionieren. AutoLogin ausschalten?"
#: standalone/drakTermServ:1172
#, c-format
@@ -19167,8 +19107,7 @@ msgstr ""
#: standalone/drakbackup:1127
#, c-format
-msgid ""
-"Error during sending file via FTP. Please correct your FTP configuration."
+msgid "Error during sending file via FTP. Please correct your FTP configuration."
msgstr ""
"Fehler bei der Übertragung via FTP.\n"
" Bitte korrigieren Sie Ihre FTP-Konfiguration."
@@ -19226,8 +19165,7 @@ msgstr ""
#: standalone/drakbackup:1421
#, c-format
-msgid ""
-"These options can backup and restore all files in your /etc directory.\n"
+msgid "These options can backup and restore all files in your /etc directory.\n"
msgstr ""
"Diese Optionen kann alle Ihre Dateien im Verzeichnis „/etc“ sichern und "
"wiederherstellen\n"
@@ -19272,8 +19210,7 @@ msgstr ""
#: standalone/drakbackup:1459
#, c-format
msgid "Please check all users that you want to include in your backup."
-msgstr ""
-"Bitte wählen Sie alle Benutzer, deren Dateien mitgesichert werden sollen."
+msgstr "Bitte wählen Sie alle Benutzer, deren Dateien mitgesichert werden sollen."
#: standalone/drakbackup:1486
#, c-format
@@ -19638,8 +19575,7 @@ msgstr "Stellen Sie sicher, dass der Cron-Dämon als Dienst aktiviert ist."
#: standalone/drakbackup:2157
#, c-format
-msgid ""
-"If your machine is not on all the time, you might want to install anacron."
+msgid "If your machine is not on all the time, you might want to install anacron."
msgstr ""
"Wenn Ihr Rechner nicht die ganze Zeit eingeschaltet ist, sollten Sie anacron "
"installieren."
@@ -19974,8 +19910,7 @@ msgstr "\t* Netzwerk per webdav.\n"
#: standalone/drakbackup:2540
#, c-format
msgid "No configuration, please click Wizard or Advanced.\n"
-msgstr ""
-"Keine Konfiguration. Wählen Sie den Assistenten oder Fortgeschritten.\n"
+msgstr "Keine Konfiguration. Wählen Sie den Assistenten oder Fortgeschritten.\n"
#: standalone/drakbackup:2545
#, c-format
@@ -20018,8 +19953,7 @@ msgstr ""
#: standalone/drakbackup:2738
#, c-format
msgid "Please uncheck or remove it on next time."
-msgstr ""
-"Bitte entfernen Sie die Markierung oder löschen Sie sie das nächste Mal."
+msgstr "Bitte entfernen Sie die Markierung oder löschen Sie sie das nächste Mal."
#: standalone/drakbackup:2748
#, c-format
@@ -20049,8 +19983,7 @@ msgstr "Bereit um die anderen Dateien wiederherzustellen"
#: standalone/drakbackup:2934
#, c-format
msgid "User list to restore (only the most recent date per user is important)"
-msgstr ""
-"Liste wiederherzustellender Benutzer (letztes Datum pro Benutzer ist wichtig)"
+msgstr "Liste wiederherzustellender Benutzer (letztes Datum pro Benutzer ist wichtig)"
#: standalone/drakbackup:2999
#, c-format
@@ -20944,8 +20877,7 @@ msgstr ""
#: standalone/drakconnect:716
#, c-format
-msgid ""
-"Congratulations, the \"%s\" network interface has been successfully deleted"
+msgid "Congratulations, the \"%s\" network interface has been successfully deleted"
msgstr "Gratulation, die „%s“ Netzwerk Karte wurde erfolgreich gelöscht"
#: standalone/drakconnect:732
@@ -21986,8 +21918,7 @@ msgstr " --help - diesen Hilfetext anzeigen \n"
#: standalone/drakhelp:23
#, c-format
-msgid ""
-" --id <id_label> - load the html help page which refers to id_label\n"
+msgid " --id <id_label> - load the html help page which refers to id_label\n"
msgstr ""
" --id <id_label> - lade die HTML Hilfeseite, die auf id_label "
"verweist\n"
@@ -22278,8 +22209,7 @@ msgstr ""
#: standalone/drakpxe:143
#, c-format
msgid "Please choose which network interface will be used for the dhcp server."
-msgstr ""
-"Bitte wählen Sie, welches Netzwerkgerät für den DHCP-Server verwendet wird."
+msgstr "Bitte wählen Sie, welches Netzwerkgerät für den DHCP-Server verwendet wird."
#: standalone/drakpxe:144
#, c-format
@@ -22338,8 +22268,7 @@ msgstr "Kein Image gefunden"
#: standalone/drakpxe:197
#, c-format
-msgid ""
-"No CD or DVD image found, please copy the installation program and rpm files."
+msgid "No CD or DVD image found, please copy the installation program and rpm files."
msgstr ""
"Kein CD oder DVD-Image gefunden, bitte kopieren Sie die "
"Installationprogramme und rpm-Dateien."
@@ -24635,10 +24564,8 @@ msgstr "Liste alternativer Soundtreiber für diese Soundkarte"
#: standalone/harddrake2:27
#, c-format
-msgid ""
-"this is the physical bus on which the device is plugged (eg: PCI, USB, ...)"
-msgstr ""
-"der physikalische Bus, an dem sich das Gerät befindet (etwa: PCI, USB, ...)"
+msgid "this is the physical bus on which the device is plugged (eg: PCI, USB, ...)"
+msgstr "der physikalische Bus, an dem sich das Gerät befindet (etwa: PCI, USB, ...)"
#: standalone/harddrake2:29 standalone/harddrake2:144
#, c-format
@@ -24673,8 +24600,7 @@ msgstr "Laufwerkskapazität"
#: standalone/harddrake2:36
#, c-format
msgid "special capacities of the driver (burning ability and or DVD support)"
-msgstr ""
-"spezielle Fähigkeiten des Treibers (Brennfähigkeit oder DVD-Unterstützung)"
+msgstr "spezielle Fähigkeiten des Treibers (Brennfähigkeit oder DVD-Unterstützung)"
#: standalone/harddrake2:37
#, c-format
@@ -24710,8 +24636,7 @@ msgstr "Modul"
#: standalone/harddrake2:44
#, c-format
msgid "the module of the GNU/Linux kernel that handles the device"
-msgstr ""
-"Das Linux Kernel-Modul, das Unterstützung für dieses Gerät bereitstellt"
+msgstr "Das Linux Kernel-Modul, das Unterstützung für dieses Gerät bereitstellt"
#: standalone/harddrake2:45
#, c-format
@@ -24965,8 +24890,7 @@ msgstr "Ist FPU vorhanden"
#: standalone/harddrake2:75
#, c-format
msgid "yes means the processor has an arithmetic coprocessor"
-msgstr ""
-"Ja bedeutet, dass der Prozessor einen mathematischen Coprozessor besitzt."
+msgstr "Ja bedeutet, dass der Prozessor einen mathematischen Coprozessor besitzt."
#: standalone/harddrake2:76
#, c-format
@@ -24976,8 +24900,7 @@ msgstr "Ob die FPU einen IRQ Vector hat"
#: standalone/harddrake2:76
#, c-format
msgid "yes means the arithmetic coprocessor has an exception vector attached"
-msgstr ""
-"Ja bedeutet, dass der mathematische Coprozessor einen Ausnahmevektor besitzt."
+msgstr "Ja bedeutet, dass der mathematische Coprozessor einen Ausnahmevektor besitzt."
#: standalone/harddrake2:77
#, c-format
@@ -25171,8 +25094,7 @@ msgstr "Gerätedatei"
#: standalone/harddrake2:113
#, c-format
-msgid ""
-"the device file used to communicate with the kernel driver for the mouse"
+msgid "the device file used to communicate with the kernel driver for the mouse"
msgstr ""
"die Gerätedatei wird verwendet, um mit dem Kerneltreiber für die Maus zu "
"kommunizieren"
@@ -25291,7 +25213,7 @@ msgstr "/_Jaz-Laufwerke automatisch erkennen"
#: standalone/harddrake2:188
#, c-format
msgid "/_Upload the hardware list"
-msgstr ""
+msgstr "/_Hardwareliste hochladen"
#: standalone/harddrake2:188 standalone/printerdrake:140
#, c-format
@@ -25387,8 +25309,7 @@ msgstr "Sonstiges"
#: standalone/harddrake2:339
#, c-format
-msgid ""
-"Click on a device in the left tree in order to display its information here."
+msgid "Click on a device in the left tree in order to display its information here."
msgstr ""
"Klicken Sie auf ein Gerät in der linken Leiste, um die entsprechende "
"Information anzuzeigen"
@@ -25416,7 +25337,7 @@ msgstr "DVD"
#: standalone/harddrake2:525
#, c-format
msgid "Upload the hardware list"
-msgstr ""
+msgstr "Hardwareliste hochladen"
#: standalone/harddrake2:530
#, c-format
@@ -25679,8 +25600,7 @@ msgstr "Dienste-Einstellungen"
msgid ""
"You will receive an alert if one of the selected services is no longer "
"running"
-msgstr ""
-"Sie werden benachrichtigt, falls einer der gewählten Dienste nicht mehr läuft"
+msgstr "Sie werden benachrichtigt, falls einer der gewählten Dienste nicht mehr läuft"
#: standalone/logdrake:421
#, c-format
@@ -25785,9 +25705,9 @@ msgid "Configure Network"
msgstr "Netzwerk konfigurieren"
#: standalone/net_applet:69
-#, fuzzy, c-format
+#, c-format
msgid "Watched interface"
-msgstr "Schnittstellen"
+msgstr "Überwachte Schnittstelle"
#: standalone/net_applet:78
#, c-format
@@ -26195,8 +26115,7 @@ msgstr "ScannerDrake abbrechen"
#: standalone/scannerdrake:60
#, c-format
-msgid ""
-"Could not install the packages needed to set up a scanner with Scannerdrake."
+msgid "Could not install the packages needed to set up a scanner with Scannerdrake."
msgstr ""
"Konnte die notwendigen Programmpakete zum Einrichten eines Scanners mit "
"Scannerdrake nicht installieren."
@@ -26292,8 +26211,7 @@ msgstr "Wenn das der Fall ist, kann das auch automatisch erledigt werden."
msgid ""
"To do so, you need to supply the firmware file for your scanner so that it "
"can be installed."
-msgstr ""
-"Es muss deshalb die Firmware Datei für den Scanner bereitgestellt werden."
+msgstr "Es muss deshalb die Firmware Datei für den Scanner bereitgestellt werden."
#: standalone/scannerdrake:178 standalone/scannerdrake:232
#, c-format
@@ -26622,8 +26540,7 @@ msgstr "Name/IP-Adresse des Rechners:"
#: standalone/scannerdrake:705 standalone/scannerdrake:855
#, c-format
msgid "Choose the host on which the local scanners should be made available:"
-msgstr ""
-"Wählen Sie den Rechner, dem der lokale Scanner bekannt gemacht werden soll:"
+msgstr "Wählen Sie den Rechner, dem der lokale Scanner bekannt gemacht werden soll:"
#: standalone/scannerdrake:716 standalone/scannerdrake:866
#, c-format
@@ -26847,16 +26764,3 @@ msgstr ""
msgid "Installation failed"
msgstr "Die Installation schlug fehl!"
-#, fuzzy
-#~ msgid "MandrakeSoft Wizards"
-#~ msgstr "Mandrakesoft-Assistenten"
-
-#~ msgid "No browser available! Please install one"
-#~ msgstr "Kein Browser installiert! Bitte installieren Sie einen."
-
-#~ msgid ""
-#~ "No browser is installed on your system, Please install one if you want to "
-#~ "browse the help system"
-#~ msgstr ""
-#~ "Es ist kein Browser auf Ihrem System installiert. Bitte installieren Sie "
-#~ "einen, wenn Sie das Hilfe-System durchsuchen wollen."
keys %{$packages->{provides}{$name} || {}}) { my $pkg = $packages->{depslist}[$_]; $pkg->is_arch_compat or next; $pkg->name eq $name or next; push @packages, $pkg; } my $best; foreach (@packages) { if ($best && $best != $_) { $_->compare_pkg($best) > 0 and $best = $_; } else { $best = $_; } } $best or log::l("unknown package `$name'") && undef; } sub packageById { my ($packages, $id) = @_; my $pkg = $packages->{depslist}[$id]; #- do not log as id unsupported are still in depslist. $pkg->is_arch_compat && $pkg; } sub bestKernelPackage { my ($packages) = @_; my $best; foreach (keys %{$packages->{provides}{kernel}}) { my $pkg = $packages->{depslist}[$_] or next; $pkg->name =~ /kernel-\d/ or next; !$best || $pkg->compare_pkg($best) > 0 and $best = $pkg; } $best; } sub packagesOfMedium { my ($packages, $medium) = @_; defined $medium->{start} && defined $medium->{end} ? @{$packages->{depslist}}[$medium->{start} .. $medium->{end}] : (); } sub packagesToInstall { my ($packages) = @_; my @packages; foreach (values %{$packages->{mediums}}) { $_->{selected} or next; log::l("examining packagesToInstall of medium $_->{descr}"); push @packages, grep { $_->flag_selected } packagesOfMedium($packages, $_); } log::l("found " . scalar(@packages) . " packages to install"); @packages; } sub allMediums { my ($packages) = @_; sort { $a <=> $b } keys %{$packages->{mediums}}; } sub mediumDescr { my ($packages, $medium) = @_; $packages->{mediums}{$medium}{descr}; } sub packageRequest { my ($packages, $pkg) = @_; #- check if the same or better version is installed, #- do not select in such case. $pkg && ($pkg->flag_upgrade || !$pkg->flag_installed) or return; #- check for medium selection, if the medium has not been #- selected, the package cannot be selected. foreach (values %{$packages->{mediums}}) { !$_->{selected} && $pkg->id >= $_->{start} && $pkg->id <= $_->{end} and return; } return { $pkg->id => 1 }; } sub packageCallbackChoices { my ($urpm, $_db, $state, $choices) = @_; if (my $prefer = find { exists $preferred{$_->name} } @$choices) { $prefer; } else { my @l = grep { #- or if a kernel has to be chosen, chose the basic one. $_->name =~ /kernel-\d/ and return $_; #- or even if a package requires a specific locales which #- is already selected. find { /locales-/ && do { my $p = packageByName($urpm, $_); $p && $p->flag_available; }; } $_->requires_nosense; } @$choices; if (!@l) { push @l, $choices->[0]; log::l("packageCallbackChoices: default choice from ", join(",", map { $urpm->{depslist}[$_]->name } keys %{$state->{selected}}), " in ", join(",", map { $_->name } @$choices)); } #-log::l("packageCallbackChoices: chosen " . join(" ", map { $_->name } @l)); @l; } } #- selection, unselection of package. sub selectPackage { my ($packages, $pkg, $b_base, $o_otherOnly) = @_; #- select package and dependancies, o_otherOnly may be a reference #- to a hash to indicate package that will strictly be selected #- when value is true, may be selected when value is false (this #- is only used for unselection, not selection) my $state = $packages->{state} ||= {}; $state->{selected} = {}; my @l = $packages->resolve_requested($packages->{rpmdb}, $state, packageRequest($packages, $pkg) || {}, callback_choices => \&packageCallbackChoices); if ($b_base || $o_otherOnly) { foreach (@l) { $b_base and $_->set_flag_base; $o_otherOnly and $o_otherOnly->{$_->id} = $_->flag_requested; } $o_otherOnly and $packages->disable_selected($packages->{rpmdb}, $state, @l); } 1; } sub unselectPackage($$;$) { my ($packages, $pkg, $o_otherOnly) = @_; #- base package are not unselectable, #- and already unselected package are no more unselectable. $pkg->flag_base and return; $pkg->flag_selected or return; my $state = $packages->{state} ||= {}; my @l = $packages->disable_selected($packages->{rpmdb}, $state, $pkg); if ($o_otherOnly) { foreach (@l) { $o_otherOnly->{$_->id} = undef; } $packages->resolve_requested($packages->{rpmdb}, $state, $o_otherOnly, callback_choices => \&packageCallbackChoices); } 1; } sub togglePackageSelection($$;$) { my ($packages, $pkg, $o_otherOnly) = @_; $pkg->flag_selected ? unselectPackage($packages, $pkg, $o_otherOnly) : selectPackage($packages, $pkg, 0, $o_otherOnly); } sub setPackageSelection($$$) { my ($packages, $pkg, $value) = @_; $value ? selectPackage($packages, $pkg) : unselectPackage($packages, $pkg); } sub unselectAllPackages($) { my ($packages) = @_; my %keep_selected; foreach (@{$packages->{depslist}}) { if ($_->flag_base || $_->flag_installed && $_->flag_selected) { #- keep track of package that should be kept selected. $keep_selected{$_->id} = $_; } else { #- deselect all packages except base or packages that need to be upgraded. $_->set_flag_required(0); $_->set_flag_requested(0); } } #- clean staten, in order to start with a brand new set... $packages->{state} = {}; $packages->resolve_requested($packages->{rpmdb}, $packages->{state}, \%keep_selected, callback_choices => \&packageCallbackChoices); } sub psUpdateHdlistsDeps { my ($prefix, $_method, $packages) = @_; my $need_copy = 0; #- check if current configuration is still up-to-date and do not need to be updated. foreach (values %{$packages->{mediums}}) { $_->{selected} || $_->{ignored} or next; my $urpmidir = -w "$prefix/var/lib/urpmi" ? "$prefix/var/lib/urpmi" : "/tmp"; my $hdlistf = "$urpmidir/hdlist.$_->{fakemedium}.cz" . ($_->{hdlist} =~ /\.cz2/ && "2"); my $synthesisf = "$urpmidir/synthesis.hdlist.$_->{fakemedium}.cz" . ($_->{hdlist} =~ /\.cz2/ && "2"); if (-s $hdlistf != $_->{hdlist_size}) { install_any::getAndSaveFile("Mandrake/base/$_->{hdlist}", $hdlistf) or die "no $_->{hdlist} found"; symlinkf $hdlistf, "/tmp/$_->{hdlist}"; ++$need_copy; } if (-s $synthesisf != $_->{synthesis_hdlist_size}) { install_any::getAndSaveFile("Mandrake/base/synthesis.$_->{hdlist}", $synthesisf); -s $synthesisf > 0 or unlink $synthesisf; } } if ($need_copy) { #- this is necessary for urpmi. my $urpmidir = -w "$prefix/var/lib/urpmi" ? "$prefix/var/lib/urpmi" : "/tmp"; install_any::getAndSaveFile("Mandrake/base/$_", "$urpmidir/$_") foreach qw(rpmsrate); } } sub psUsingHdlists { my ($prefix, $method) = @_; my $listf = install_any::getFile('Mandrake/base/hdlists') or die "no hdlists found"; my $packages = new URPM; #- add additional fields used by DrakX. @$packages{qw(count mediums)} = (0, {}); #- parse hdlists file. my $medium = 1; foreach (<$listf>) { chomp; s/\s*#.*$//; /^\s*$/ and next; m/^\s*(noauto:)?(hdlist\S*\.cz2?)\s+(\S+)\s*(.*)$/ or die "invalid hdlist description \"$_\" in hdlists file"; #- make sure the first medium is always selected! #- by default select all image. psUsingHdlist($prefix, $method, $packages, $2, $medium, $3, $4, !$1); ++$medium; } log::l("psUsingHdlists read " . int(@{$packages->{depslist}}) . " headers on " . int(keys %{$packages->{mediums}}) . " hdlists"); $packages; } sub psUsingHdlist { my ($prefix, $method, $packages, $hdlist, $medium, $rpmsdir, $descr, $selected, $o_fhdlist) = @_; my $fakemedium = "$descr ($method$medium)"; my $urpmidir = -w "$prefix/var/lib/urpmi" ? "$prefix/var/lib/urpmi" : "/tmp"; log::l("trying to read $hdlist for medium $medium"); #- if the medium already exist, use it. $packages->{mediums}{$medium} and return $packages->{mediums}{$medium}; my $m = { hdlist => $hdlist, method => $method, medium => $medium, rpmsdir => $rpmsdir, #- where is RPMS directory. descr => $descr, fakemedium => $fakemedium, selected => $selected, #- default value is only CD1, it is really the minimal. ignored => !$selected, #- keep track of ignored medium by DrakX. }; #- copy hdlist file directly to urpmi directory, this will be used #- for getting header of package during installation or after by urpmi. my $newf = "$urpmidir/hdlist.$fakemedium.cz" . ($hdlist =~ /\.cz2/ && "2"); -e $newf and do { unlink $newf or die "cannot remove $newf: $!" }; install_any::getAndSaveFile($o_fhdlist || "Mandrake/base/$hdlist", $newf) or do { unlink $newf; die "no $hdlist found" }; $m->{hdlist_size} = -s $newf; #- keep track of size for post-check. symlinkf $newf, "/tmp/$hdlist"; #- if $o_fhdlist is defined, this is preferable not to try to find the associated synthesis. my $newsf = "$urpmidir/synthesis.hdlist.$fakemedium.cz" . ($hdlist =~ /\.cz2/ && "2"); unless ($o_fhdlist) { #- copy existing synthesis file too. install_any::getAndSaveFile("Mandrake/base/synthesis.$hdlist", $newsf); $m->{synthesis_hdlist_size} = -s $newsf; #- keep track of size for post-check. -s $newsf > 0 or unlink $newsf; } #- integrate medium in media list, only here to avoid download error (update) to be propagated. $packages->{mediums}{$medium} = $m; #- avoid using more than one medium if Cd is not ejectable. #- but keep all medium here so that urpmi has the whole set. $method eq 'cdrom' && $medium > 1 && !common::usingRamdisk() and return; #- parse synthesis (if available) of directly hdlist (with packing). if ($m->{ignored}) { log::l("ignoring packages in $hdlist"); } else { if (-s $newsf) { ($m->{start}, $m->{end}) = $packages->parse_synthesis($newsf); } elsif (-s $newf) { ($m->{start}, $m->{end}) = $packages->parse_hdlist($newf, 1); } else { delete $packages->{mediums}{$medium}; unlink $newf; $o_fhdlist or unlink $newsf; die "fatal: no hdlist nor synthesis to read for $fakemedium"; } $m->{start} > $m->{end} and do { delete $packages->{mediums}{$medium}; unlink $newf; $o_fhdlist or unlink $newsf; die "fatal: nothing read in hdlist or synthesis for $fakemedium" }; log::l("read " . ($m->{end} - $m->{start} + 1) . " packages in $hdlist"); } $m; } sub read_rpmsrate { my ($packages, $f) = @_; my $line_nb = 0; my $fatal_error; my (@l); local $_; while (<$f>) { $line_nb++; /\t/ and die "tabulations not allowed at line $line_nb\n"; s/#.*//; # comments my ($indent, $data) = /(\s*)(.*)/; next if !$data; # skip empty lines @l = grep { $_->[0] < length $indent } @l; my @m = @l ? @{$l[-1][1]} : (); my ($t, $flag, @l2); while ($data =~ /^(( [1-5] | (?: (?: !\s*)? [0-9A-Z_]+(?:".*?")?) (?: \s*\|\|\s* (?: !\s*)? [0-9A-Z_]+(?:".*?")?)* ) (?:\s+|$) )(.*)/x) { #@")) { ($t, $flag, $data) = ($1,$2,$3); while ($flag =~ s,^\s*(("[^"]*"|[^"\s]*)*)\s+,$1,) {} my $ok = 0; $flag = join('||', grep { if (my ($inv, $p) = /^(!)?HW"(.*)"/) { ($inv xor detect_devices::matching_desc($p)) and $ok = 1; 0; } else { 1; } } split '\|\|', $flag); push @m, $ok ? 'TRUE' : $flag || 'FALSE'; push @l2, [ length $indent, [ @m ] ]; $indent .= $t; } if ($data) { # has packages on same line my $rate = find { /^\d$/ } @m or die sprintf qq(missing rate for "%s" at line %d (flags are %s)\n), $data, $line_nb, join('&&', @m); foreach (split ' ', $data) { if ($packages) { my $p = packageByName($packages, $_) or next; my @m2 = map { if_(/locales-(.*)/, qq(LOCALES"$1")) } $p->requires_nosense; my @m3 = ((grep { !/^\d$/ } @m), @m2); if (member('INSTALL', @m3)) { member('NOCOPY', @m3) or push @{$packages->{needToCopy} ||= []}, $_; next; #- don't need to put INSTALL flag for a package. } if ($p->rate) { my @m4 = $p->rflags; if (@m3 > 1 || @m4 > 1) { log::l("can't handle complicate flags for packages appearing twice ($_)"); $fatal_error++; } log::l("package $_ appearing twice with different rates ($rate != ".$p->rate.")") if $rate != $p->rate; $p->set_rate($rate); $p->set_rflags("$m3[0]||$m4[0]"); } else { $p->set_rate($rate); $p->set_rflags(@m3); } } else { print "$_ = ", join(" && ", @m), "\n"; } } push @l, @l2; } else { push @l, [ $l2[0][0], $l2[-1][1] ]; } } $fatal_error and die "$fatal_error fatal errors in rpmsrate"; } sub readCompssUsers { my ($meta_class) = @_; my (%compssUsers, @sorted, $l); my $file = 'Mandrake/base/compssUsers'; my $f = $meta_class && install_any::getFile("$file.$meta_class") || install_any::getFile($file) or die "can't find $file"; local $_; while (<$f>) { /^\s*$/ || /^#/ and next; s/#.*//; if (/^(\S.*)/) { my $verbatim = $_; my ($icon, $descr, $path); /^(.*?)\s*\[path=(.*?)\](.*)/ and $_ = "$1$3", $path = $2; /^(.*?)\s*\[icon=(.*?)\](.*)/ and $_ = "$1$3", $icon = $2; /^(.*?)\s*\[descr=(.*?)\](.*)/ and $_ = "$1$3", $descr = $2; $compssUsers{"$path|$_"} = { label => $_, verbatim => $verbatim, path => $path, icons => $icon, descr => $descr, flags => $l = [] }; push @sorted, "$path|$_"; } elsif (/^\s+(.*?)\s*$/) { push @$l, $1; } } \%compssUsers, \@sorted; } sub saveCompssUsers { my ($prefix, $packages, $compssUsers, $sorted) = @_; my $flat; foreach (@$sorted) { my @fl = @{$compssUsers->{$_}{flags}}; my %fl; $fl{$_} = 1 foreach @fl; $flat .= $compssUsers->{$_}{verbatim}; foreach my $p (@{$packages->{depslist}}) { my @flags = $p->rflags; if ($p->rate && any { any { !/^!/ && $fl{$_} } split('\|\|') } @flags) { $flat .= sprintf "\t%d %s\n", $p->rate, $p->name; } } } my $urpmidir = -w "$prefix/var/lib/urpmi" ? "$prefix/var/lib/urpmi" : "/tmp"; output "$urpmidir/compssUsers.flat", $flat; } sub setSelectedFromCompssList { my ($packages, $compssUsersChoice, $min_level, $max_size) = @_; $compssUsersChoice->{TRUE} = 1; #- ensure TRUE is set my $nb = selectedSize($packages); foreach my $p (sort { $b->rate <=> $a->rate } @{$packages->{depslist}}) { my @flags = $p->rflags; next if !$p->rate || $p->rate < $min_level || any { !any { /^!(.*)/ ? !$compssUsersChoice->{$1} : $compssUsersChoice->{$_} } split('\|\|') } @flags; #- determine the packages that will be selected when #- selecting $p. the packages are not selected. my $state = $packages->{state} ||= {}; my @l = $packages->resolve_requested($packages->{rpmdb}, $state, packageRequest($packages, $p) || {}, callback_choices => \&packageCallbackChoices); #- this enable an incremental total size. my $old_nb = $nb; foreach (@l) { $nb += $_->size; } if ($max_size && $nb > $max_size) { $nb = $old_nb; $min_level = $p->rate; $packages->disable_selected($packages->{rpmdb}, $state, @l); last; } } log::l("setSelectedFromCompssList: reached size ", formatXiB($nb), ", up to indice $min_level (less than ", formatXiB($max_size), ")"); log::l("setSelectedFromCompssList: ", join(" ", sort map { $_->name } grep { $_->flag_selected } @{$packages->{depslist}})); $min_level; } #- usefull to know the size it would take for a given min_level/max_size #- just saves the selected packages, call setSelectedFromCompssList and restores the selected packages sub saveSelected { my ($packages) = @_; my $state = delete $packages->{state}; my @l = @{$packages->{depslist}}; my @flags = map { ($_->flag_requested && 1) + ($_->flag_required && 2) + ($_->flag_upgrade && 4) } @l; [ $packages, $state, \@l, \@flags ]; } sub restoreSelected { my ($packages, $state, $l, $flags) = @{$_[0]}; $packages->{state} = $state; mapn { my ($pkg, $flag) = @_; $pkg->set_flag_requested($flag & 1); $pkg->set_flag_required($flag & 2); $pkg->set_flag_upgrade($flag & 4); } $l, $flags; } sub computeGroupSize { my ($packages, $min_level) = @_; sub inside { my ($l1, $l2) = @_; my $i = 0; return if @$l1 > @$l2; foreach (@$l1) { my $c; while ($c = $l2->[$i++] cmp $_) { return if $c == 1 || $i > @$l2; } } 1; } sub or_ify { my ($first, @other) = @_; my @l = split('\|\|', $first); foreach (@other) { @l = map { my $n = $_; map { "$_&&$n" } @l; } split('\|\|'); } #- HACK, remove LOCALES & CHARSET, too costly grep { !/LOCALES|CHARSET/ } @l; } sub or_clean { my (@l) = map { [ sort split('&&') ] } @_ or return ''; my @r; B: while (@l) { my $e = shift @l; foreach (@r, @l) { inside($e, $_) and next B; } push @r, $e; } join("\t", map { join('&&', @$_) } @r); } my (%group, %memo, $slowpart_counter); foreach my $p (@{$packages->{depslist}}) { my @flags = $p->rflags; next if !$p->rate || $p->rate < $min_level; my $flags = join("\t", @flags = or_ify(@flags)); $group{$p->name} = ($memo{$flags} ||= or_clean(@flags)); #- determine the packages that will be selected when selecting $p. #- make a fast selection (but potentially erroneous). #- installed and upgrade flags must have been computed (see compute_installed_flags). my %newSelection; unless ($p->flag_available) { my @l2 = $p->id; my $id; while (defined($id = shift @l2)) { exists $newSelection{$id} and next; $newSelection{$id} = undef; my $pkg = $packages->{depslist}[$id]; foreach ($pkg->requires_nosense) { my @choices = keys %{$packages->{provides}{$_} || {}}; if (@choices <= 1) { push @l2, @choices; } elsif (! find { exists $newSelection{$_} } @choices) { my ($candidate_id, $prefer_id); foreach (@choices) { ++$slowpart_counter; my $ppkg = $packages->{depslist}[$_] or next; $ppkg->flag_available and $prefer_id = $candidate_id = undef, last; exists $preferred{$ppkg->name} and $prefer_id = $_; $ppkg->name =~ /kernel-\d/ and $prefer_id ||= $_; foreach my $l ($ppkg->requires_nosense) { /locales-/ or next; my $pppkg = packageByName($packages, $l) or next; $pppkg->flag_available and $prefer_id ||= $_; } $candidate_id = $_; } if (defined $prefer_id || defined $candidate_id) { push @l2, defined $prefer_id ? $prefer_id : $candidate_id; } } } } } foreach (keys %newSelection) { my $p = $packages->{depslist}[$_] or next; my $s = $group{$p->name} || do { join("\t", or_ify($p->rflags)); }; next if length($s) > 80; # HACK, truncated too complicated expressions, too costly my $m = "$flags\t$s"; $group{$p->name} = ($memo{$m} ||= or_clean(@flags, split("\t", $s))); } } my (%sizes, %pkgs); while (my ($k, $v) = each %group) { my $pkg = packageByName($packages, $k) or next; push @{$pkgs{$v}}, $k; $sizes{$v} += $pkg->size - $packages->{sizes}{$pkg->name}; } log::l(sprintf "%s %dMB %s", $_, $sizes{$_} / sqr(1024), join(',', @{$pkgs{$_}})) foreach keys %sizes; \%sizes, \%pkgs; } sub openInstallLog { my ($prefix) = @_; my $f = "$prefix/root/drakx/install.log"; open(my $LOG, ">> $f") ? log::l("opened $f") : log::l("Failed to open $f. No install log will be kept."); #-# CORE::select((CORE::select($LOG), $| = 1)[0]); c::rpmErrorSetCallback(fileno $LOG); #- c::rpmSetVeryVerbose(); $LOG; } sub rpmDbOpen { my ($prefix, $o_rebuild_needed) = @_; if ($o_rebuild_needed) { if (my $pid = fork()) { waitpid $pid, 0; $? & 0xff00 and die "rebuilding of rpm database failed"; } else { log::l("rebuilding rpm database"); my $rebuilddb_dir = "$prefix/var/lib/rpmrebuilddb.$$"; -d $rebuilddb_dir and log::l("removing stale directory $rebuilddb_dir"), rm_rf($rebuilddb_dir); URPM::DB::rebuild($prefix) or log::l("rebuilding of rpm database failed: " . c::rpmErrorString()), c::_exit(2); c::_exit(0); } } my $db; if ($db = URPM::DB::open($prefix)) { log::l("opened rpm database for examining existing packages"); } else { log::l("unable to open rpm database, using empty rpm db emulation"); $db = new URPM; } $db; } sub cleanOldRpmDb { my ($prefix) = @_; my $failed; foreach (qw(Basenames Conflictname Group Name Packages Providename Requirename Triggername)) { -s "$prefix/var/lib/rpm/$_" or $failed = 'failed'; } #- rebuilding has been successfull, so remove old rpm database if any. #- once we have checked the rpm4 db file are present and not null, in case #- of doubt, avoid removing them... unless ($failed) { log::l("rebuilding rpm database completed successfully"); foreach (qw(conflictsindex.rpm fileindex.rpm groupindex.rpm nameindex.rpm packages.rpm providesindex.rpm requiredby.rpm triggerindex.rpm)) { -e "$prefix/var/lib/rpm/$_" or next; log::l("removing old rpm file $_"); rm_rf("$prefix/var/lib/rpm/$_"); } } } sub selectPackagesAlreadyInstalled { my ($packages, $_prefix) = @_; log::l("computing installed flags and size of installed packages"); $packages->{sizes} = $packages->compute_installed_flags($packages->{rpmdb}); } sub selectPackagesToUpgrade { my ($packages, $_prefix, $o_medium) = @_; #- check before that if medium is given, it should be valid. $o_medium && (! defined $o_medium->{start} || ! defined $o_medium->{end}) and return; log::l("selecting packages to upgrade"); my $state = $packages->{state} ||= {}; $state->{selected} = {}; my %selection; $packages->request_packages_to_upgrade($packages->{rpmdb}, $state, \%selection, requested => undef, $o_medium ? (start => $o_medium->{start}, end => $o_medium->{end}) : (), ); log::l("resolving dependencies..."); $packages->resolve_requested($packages->{rpmdb}, $state, \%selection, callback_choices => \&packageCallbackChoices); log::l("...done"); } sub allowedToUpgrade { $_[0] !~ /^(kernel|kernel22|kernel2.2|kernel-secure|kernel-smp|kernel-linus|kernel-linus2.2|hackkernel|kernel-enterprise)$/ } sub installTransactionClosure { my ($packages, $id2pkg) = @_; my ($id, %closure, @l, $medium, $min_id, $max_id); @l = sort { $a <=> $b } keys %$id2pkg; #- search first usable medium (sorted by medium ordering). foreach (sort { $a->{start} <=> $b->{start} } values %{$packages->{mediums}}) { unless ($_->{selected}) { #- this medium is not selected, but we have to make sure no package are left #- in $id2pkg. if (defined $_->{start} && defined $_->{end}) { foreach ($_->{start} .. $_->{end}) { delete $id2pkg->{$_}; } } #- anyway, examine the next one. next; } if ($l[0] <= $_->{end}) { #- we have a candidate medium, it could be the right one containing #- the first package of @l... $l[0] >= $_->{start} and $medium = $_, last; #- ... but it could be necessary to find the first #- medium containing package of @l. foreach my $id (@l) { $id >= $_->{start} && $id <= $_->{end} and $medium = $_, last; } $medium and last; } } $medium or return (); #- no more medium usable -> end of installation by returning empty list. ($min_id, $max_id) = ($medium->{start}, $medium->{end}); #- it is sure at least one package will be installed according to medium chosen. install_any::useMedium($medium->{medium}); if ($medium->{method} eq 'cdrom') { my $pkg = $packages->{depslist}[$l[0]]; #- force changeCD callback to be called from main process. install_any::getFile($pkg->filename, $medium->{descr}); #- close opened handle above. install_any::getFile('XXX'); } while (defined($id = shift @l)) { my @l2 = $id; while (defined($id = shift @l2)) { exists $closure{$id} and next; $id >= $min_id && $id <= $max_id or next; $closure{$id} = undef; my $pkg = $packages->{depslist}[$id]; foreach ($pkg->requires_nosense) { foreach (keys %{$packages->{provides}{$_} || {}}) { if ($id2pkg->{$_}) { push @l2, $_; last; } } } } keys %closure >= $limitMinTrans and last; } map { delete $id2pkg->{$_} } grep { $id2pkg->{$_} } keys %closure; } sub installCallback { # my $msg = shift; # log::l($msg .": ". join(',', @_)); } sub install($$$;$$) { my ($prefix, $isUpgrade, $toInstall, $packages) = @_; my %packages; return if $::g_auto_install || !scalar(@$toInstall); #- for root loopback'ed /boot my $loop_boot = loopback::prepare_boot(); #- first stage to extract some important informations #- about the packages selected. this is used to select #- one or many transaction. my ($total, $nb); foreach my $pkg (@$toInstall) { $packages{$pkg->id} = $pkg; $nb++; $total += to_int($pkg->size); #- do not correct for upgrade! } log::l("pkgs::install $prefix"); log::l("pkgs::install the following: ", join(" ", map { $_->name } values %packages)); eval { fs::mount("/proc", "$prefix/proc", "proc", 0) } unless -e "$prefix/proc/cpuinfo"; URPM::read_config_files(); my $LOG = openInstallLog($prefix); #- do not modify/translate the message used with installCallback since #- these are keys during progressing installation, or change in other #- place (install_steps_gtk.pm,...). installCallback($packages, 'user', undef, 'install', $nb, $total); do { my @transToInstall = installTransactionClosure($packages, \%packages); $nb = values %packages; #- added to exit typically after last media unselected. if ($nb == 0 && scalar(@transToInstall) == 0) { cleanHeaders($prefix); loopback::save_boot($loop_boot); return; } #- extract headers for parent as they are used by callback. extractHeaders($prefix, \@transToInstall, $packages->{mediums}); my ($retry_pkg, $retry_count); while ($retry_pkg || @transToInstall) { local (*INPUT, *OUTPUT); pipe INPUT, OUTPUT; if (my $pid = fork()) { close OUTPUT; my $error_msg = ''; local $_; while (<INPUT>) { if (/^die:(.*)/) { $error_msg = $1; last; } else { chomp; my @params = split ":"; if ($params[0] eq 'close') { my $pkg = $packages->{depslist}[$params[1]]; #- update flag associated to package. $pkg->set_flag_installed(1); $pkg->set_flag_upgrade(0); #- update obsoleted entry. foreach (keys %{$packages->{state}{obsoleted}}) { if (exists $packages->{state}{obsoleted}{$_}{$pkg->id}) { delete $packages->{state}{obsoleted}{$_}{$pkg->id}; %{$packages->{state}{obsoleted}{$_}} or delete $packages->{state}{obsoleted}{$_}; } } } else { installCallback($packages, @params); } } } $error_msg and $error_msg .= join('', <INPUT>); waitpid $pid, 0; close INPUT; $error_msg and die $error_msg; } else { #- child process will run each transaction. $SIG{SEGV} = sub { log::l("segmentation fault on transactions"); c::_exit(0) }; my @prev_pids = grep { /^\d+$/ } all("/proc"); close INPUT; select((select(OUTPUT), $| = 1)[0]); if ($::testing) { my $size_typical = $nb ? int($total/$nb) : 0; foreach (@transToInstall) { log::l("i would install ", $_->name, " now"); my $id = $_->id; print OUTPUT "inst:$id:start:0:$size_typical\ninst:$id:progress:0:$size_typical\nclose:$id\n"; } } else { eval { my $db = URPM::DB::open($prefix, 1) or die "error opening RPM database: ", c::rpmErrorString(); my $trans = $db->create_transaction($prefix); if ($retry_pkg) { log::l("opened rpm database for retry transaction of 1 package only"); $trans->add($retry_pkg, $isUpgrade && allowedToUpgrade($retry_pkg->name)); } else { log::l("opened rpm database for transaction of " . int(@transToInstall) . " new packages, still $nb after that to do"); $trans->add($_, $isUpgrade && allowedToUpgrade($_->name)) foreach @transToInstall; } $trans->order or die "error ordering package list: " . c::rpmErrorString(); $trans->set_script_fd(fileno $LOG); log::l("rpm transactions start"); my $fd; #- since we return the "fileno", perl doesn't know we're still using it, and so closes it, and :-( my @probs = $trans->run($packages, force => 1, nosize => 1, callback_open => sub { my ($data, $_type, $id) = @_; my $pkg = defined $id && $data->{depslist}[$id]; my $medium = packageMedium($packages, $pkg); my $f = $pkg && $pkg->filename; print $LOG "$f\n"; $fd = install_any::getFile($f, $medium->{descr}); $fd ? fileno $fd : -1; }, callback_close => sub { my ($data, $_type, $id) = @_; my $pkg = defined $id && $data->{depslist}[$id] or return; my $check_installed; $db->traverse_tag('name', [ $pkg->name ], sub { my ($p) = @_; $check_installed ||= $pkg->compare_pkg($p) == 0; }); $check_installed and print OUTPUT "close:$id\n"; }, callback_inst => sub { my ($_data, $type, $id, $subtype, $amount, $total) = @_; print OUTPUT "$type:$id:$subtype:$amount:$total\n"; }); log::l("transactions done, now trying to close still opened fd"); install_any::getFile('XXX'); #- close still opened fd. @probs and die "installation of rpms failed:\n ", join("\n ", @probs); }; $@ and print OUTPUT "die:$@\n" } close OUTPUT; #- now search for child process which may be locking the cdrom, making it unable to be ejected. my @allpids = grep { /^\d+$/ } all("/proc"); my %ppids; foreach (@allpids) { push @{$ppids{$1 || 1}}, $_ if cat_("/proc/$_/status") =~ /^PPid:\s+(\d+)/m; } my @killpid = difference2(\@allpids, [ @prev_pids, difference2([ $$, hashtree2list(getppid(), \%ppids) ], [ hashtree2list($$, \%ppids) ]) ]); if (@killpid) { foreach (@killpid) { my $s = "$_: " . join(' ', split("\0", cat_("/proc/$_/cmdline"))); log::l("ERROR: DrakX should not have to clean the packages shit. Killing $s."); } kill 15, @killpid; sleep 2; kill 9, @killpid; } c::_exit(0); } #- if we are using a retry mode, this means we have to split the transaction with only #- one package for each real transaction. if (!$retry_pkg) { my @badPackages; foreach (@transToInstall) { if (!$_->flag_installed && packageMedium($packages, $_)->{selected} && !exists($ignoreBadPkg{$_->name})) { push @badPackages, $_; log::l("bad package ".$_->fullname); } else { $_->free_header; } } @transToInstall = @badPackages; #- if we are in retry mode, we have to fetch only one package at a time. $retry_pkg = shift @transToInstall; $retry_count = 3; } else { my $name; if (!$retry_pkg->flag_installed && packageMedium($packages, $retry_pkg)->{selected} && !exists($ignoreBadPkg{$retry_pkg->name})) { if ($retry_count) { log::l("retrying installing package ".$retry_pkg->fullname." alone in a transaction"); --$retry_count; } else { log::l("bad package " . $retry_pkg->fullname . " unable to be installed"); $retry_pkg->set_flag_requested(0); $retry_pkg->set_flag_required(0); #- keep name to display (problem of displaying ?). $name = $retry_pkg->fullname; $retry_pkg->free_header; $retry_pkg = shift @transToInstall; $retry_count = 3; #- now it could be safe to display error message ? cdie("error installing package list: $name"); } } #- check if name has been set (so that the following code has been executed already). if (!$name && ($retry_pkg->flag_installed || !$retry_pkg->flag_selected)) { $retry_pkg->free_header; $retry_pkg = shift @transToInstall; $retry_count = 3; } } } cleanHeaders($prefix); } while $nb > 0 && !$pkgs::cancel_install; log::l("closing install.log file"); close $LOG; cleanHeaders($prefix); loopback::save_boot($loop_boot); } sub remove { my ($prefix, $toRemove, $packages) = @_; return if $::g_auto_install || !@{$toRemove || []}; my $db = URPM::DB::open($prefix, 1) or die "error opening RPM database: ", c::rpmErrorString(); my $trans = $db->create_transaction($prefix); foreach my $p (@$toRemove) { #- stuff remove all packages that matches $p, not a problem since $p has name-version-release format. $trans->remove($p); } eval { fs::mount("/proc", "$prefix/proc", "proc", 0) } unless -e "$prefix/proc/cpuinfo"; #- we are not checking depends since it should come when #- upgrading a system. although we may remove some functionalities ? #- do not modify/translate the message used with installCallback since #- these are keys during progressing installation, or change in other #- place (install_steps_gtk.pm,...). installCallback($db, 'user', undef, 'remove', scalar @$toRemove); if (my @probs = $trans->run(undef, force => 1)) { die "removing of old rpms failed:\n ", join("\n ", @probs); } else { #- clean ask_remove according to package marked to be deleted. if ($packages) { foreach my $p (@$toRemove) { delete $packages->{state}{ask_remove}{$p}; } } } #- keep in mind removing of these packages by cleaning $toRemove. @{$toRemove || []} = (); } sub selected_leaves { my ($packages) = @_; my @leaves; foreach (@{$packages->{depslist}}) { $_->flag_requested && !$_->flag_base and push @leaves, $_->name; } \@leaves; } sub naughtyServers { my ($packages) = @_; my @_old_81 = qw( freeswan ); my @_old_82 = qw( vnc-server postgresql-server mon ); my @new_80 = qw( jabber FreeWnn MySQL am-utils apache boa cfengine cups drakxtools-http finger-server imap leafnode lpr ntp openssh-server pidentd postfix proftpd rwall rwho squid webmin wu-ftpd ypbind ); # nfs-utils-clients portmap # X server my @new_81 = qw( apache-mod_perl ftp-server-krb5 mcserv samba telnet-server-krb5 ypserv ); my @new_82 = qw( LPRng bind httpd-naat ibod inn netatalk nfs-utils rusers-server samba-swat tftp-server ucd-snmp ); my @naughtyServers = (@new_80, @new_81, @new_82); grep { my $p = packageByName($packages, $_); $p && $p->flag_selected; } @naughtyServers; } sub hashtree2list { my ($e, $h) = @_; my @l; my @todo = $e; while (@todo) { my $e = shift @todo; push @l, $e; push @todo, @{$h->{$e} || []}; } @l; } 1;