[Frugalware-darcs] setup: setup: if libalpm returns an error when updating the package database, display a dialog detailing the error

AlexExtreme alex at alex-smith.me.uk
Sun Oct 8 18:28:53 CEST 2006


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=setup;a=darcs_commitdiff;h=20061008162757-46e39-a1d91d4a30f32e74a1888dabbcbbd8a00045f8e8.gz;

[setup: if libalpm returns an error when updating the package database, display a dialog detailing the error
AlexExtreme <alex at alex-smith.me.uk>**20061008162757] {
hunk ./po/de.po 11
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/de.po 24
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/de.po 46
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/de.po 368
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/de.po 392
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/de.po 419
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/de.po 448
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/de.po 452
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/de.po 525
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/de.po 529
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/de.po 533
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/de.po 537
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/de.po 541
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/de.po 550
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/de.po 554
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/de.po 558
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/de.po 562
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/de.po 566
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/fr.po 10
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/fr.po 24
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/fr.po 46
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/fr.po 362
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/fr.po 385
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/fr.po 414
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/fr.po 443
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/fr.po 447
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/fr.po 519
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/fr.po 523
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/fr.po 527
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/fr.po 531
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/fr.po 535
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/fr.po 545
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/fr.po 549
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/fr.po 553
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/fr.po 557
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/fr.po 561
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/hu.po 12
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/hu.po 24
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/hu.po 45
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/hu.po 351
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/hu.po 374
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/hu.po 403
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/hu.po 432
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/hu.po 436
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/hu.po 506
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/hu.po 510
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/hu.po 514
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/hu.po 518
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/hu.po 522
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/hu.po 532
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/hu.po 536
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/hu.po 540
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/hu.po 544
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/hu.po 548
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/id.po 11
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/id.po 24
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/id.po 45
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/id.po 351
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/id.po 375
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/id.po 404
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/id.po 433
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/id.po 437
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/id.po 508
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/id.po 512
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/id.po 516
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/id.po 520
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/id.po 524
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/id.po 534
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/id.po 538
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/id.po 542
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/id.po 546
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/id.po 550
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/nl.po 11
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/nl.po 24
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/nl.po 45
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/nl.po 358
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/nl.po 382
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/nl.po 410
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/nl.po 439
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/nl.po 443
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/nl.po 519
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/nl.po 523
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/nl.po 527
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/nl.po 531
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/nl.po 535
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/nl.po 545
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/nl.po 549
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/nl.po 553
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/nl.po 557
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/nl.po 561
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/pl.po 7
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/pl.po 19
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/pl.po 38
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/pl.po 334
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/pl.po 357
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/pl.po 380
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/pl.po 409
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/pl.po 413
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/pl.po 481
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/pl.po 485
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/pl.po 489
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/pl.po 493
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/pl.po 497
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/pl.po 506
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/pl.po 510
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/pl.po 514
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/pl.po 518
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/pl.po 522
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/pt.po 5
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/pt.po 19
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/pt.po 41
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/pt.po 358
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/pt.po 382
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/pt.po 411
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/pt.po 440
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/pt.po 444
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/pt.po 517
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/pt.po 521
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/pt.po 525
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/pt.po 529
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/pt.po 533
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/pt.po 543
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/pt.po 547
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/pt.po 551
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/pt.po 555
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/pt.po 559
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/setup.pot 11
-"POT-Creation-Date: 2006-10-08 15:11+0100\n"
+"POT-Creation-Date: 2006-10-08 17:26+0100\n"
hunk ./po/setup.pot 23
-#: ../src/plugins/select.c:330 ../src/util.c:307
+#: ../src/plugins/select.c:330 ../src/util.c:308
hunk ./po/setup.pot 42
-#: ../src/plugins/select.c:393 ../src/plugins/select.c:400
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:401 ../src/plugins/select.c:408
+#: ../src/plugins/select.c:436
hunk ./po/setup.pot 319
-#: ../src/plugins/restart.c:82 ../src/util.c:124
+#: ../src/plugins/restart.c:82 ../src/util.c:125
hunk ./po/setup.pot 339
-#: ../src/plugins/select.c:272 ../src/plugins/select.c:390
+#: ../src/plugins/select.c:272 ../src/plugins/select.c:398
hunk ./po/setup.pot 359
-#: ../src/plugins/select.c:393
+#: ../src/plugins/select.c:344 ../src/plugins/select.c:352
+#: ../src/plugins/select.c:362 ../src/plugins/select.c:366
+msgid "Error"
+msgstr ""
+
+#: ../src/plugins/select.c:344
+#, c-format
+msgid "Failed to parse pacman configuration file (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:352
+#, c-format
+msgid "Could not register '%s' database (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:362
+#, c-format
+msgid "Failed to synchronize %s"
+msgstr ""
+
+#: ../src/plugins/select.c:366
+#, c-format
+msgid "Failed to update %s (%s)"
+msgstr ""
+
+#: ../src/plugins/select.c:401
hunk ./po/setup.pot 388
-#: ../src/plugins/select.c:400
+#: ../src/plugins/select.c:408
hunk ./po/setup.pot 392
-#: ../src/plugins/select.c:428
+#: ../src/plugins/select.c:436
hunk ./po/setup.pot 450
-#: ../src/util.c:51
+#: ../src/util.c:52
hunk ./po/setup.pot 454
-#: ../src/util.c:64
+#: ../src/util.c:65
hunk ./po/setup.pot 458
-#: ../src/util.c:124
+#: ../src/util.c:125
hunk ./po/setup.pot 462
-#: ../src/util.c:164
+#: ../src/util.c:165
hunk ./po/setup.pot 466
-#: ../src/util.c:165
+#: ../src/util.c:166
hunk ./po/setup.pot 473
-#: ../src/util.c:181
+#: ../src/util.c:182
hunk ./po/setup.pot 477
-#: ../src/util.c:182
+#: ../src/util.c:183
hunk ./po/setup.pot 481
-#: ../src/util.c:609
+#: ../src/util.c:610
hunk ./po/setup.pot 485
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./po/setup.pot 489
-#: ../src/util.c:611
+#: ../src/util.c:612
hunk ./src/plugins/select.c 343
-				fprintf(stderr, "failed to parse pacman config (%s)\n", alpm_strerror(pm_errno));
-				return(1);
+				dlg_put_backtitle();
+				dialog_msgbox(_("Error"), g_strdup_printf(_("Failed to parse pacman configuration file (%s)"), alpm_strerror(pm_errno)), 0, 0, 1);
+				exit_perform();
hunk ./src/plugins/select.c 349
-			if(mydatabase == NULL)
+			if (mydatabase == NULL)
hunk ./src/plugins/select.c 351
-				fprintf(stderr, "could not register '%s' database (%s)\n", PACCONF, alpm_strerror(pm_errno));
-				return(1);
+				dlg_put_backtitle();
+				dialog_msgbox(_("Error"), g_strdup_printf(_("Could not register '%s' database (%s)"), PACCONF, alpm_strerror(pm_errno)), 0, 0, 1);
+				exit_perform();
hunk ./src/plugins/select.c 359
-				if(ret > 0) {
-					if(pm_errno == PM_ERR_DB_SYNC)
-						fprintf(stderr, "failed to synchronize %s\n", PACCONF);
-					else
-						fprintf(stderr, "failed to update %s (%s)\n", PACCONF, alpm_strerror(pm_errno));
-				} else if(ret < 0)
-					fprintf(stderr, " %s is up to date\n", PACCONF);
+				if (ret > 0) {
+					if(pm_errno == PM_ERR_DB_SYNC) {
+						dlg_put_backtitle();
+						dialog_msgbox(_("Error"), g_strdup_printf(_("Failed to synchronize %s"), PACCONF), 0, 0, 1);
+						exit_perform();
+					} else {
+						dlg_put_backtitle();
+						dialog_msgbox(_("Error"), g_strdup_printf(_("Failed to update %s (%s)"), PACCONF, alpm_strerror(pm_errno)), 0, 0, 1);
+						exit_perform();
+					}
+				} else if (ret < 0) {
+					fprintf(stderr, " %s is up to date", PACCONF);
+				}
}


More information about the Frugalware-darcs mailing list