]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
pakfire: Add information about probable causes when pakfire cannot connect
authorLars Schuhmacher <larsen007@web.de>
Mon, 1 Jun 2015 20:50:07 +0000 (22:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Jun 2015 21:47:46 +0000 (23:47 +0200)
Add information about probable causes when pakfire cannot connect. This
includes port 11371 TCP and incorrect date/time settings.

Signed-off-by: Lars Schuhmacher <larsen007@web.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/lib/functions.pl

index 6bf85afdca3895b7b4c32a2387e44cd5d66f0f0c..d2f77fa8f18134d421e166ce808901dc2ae67b54 100644 (file)
@@ -890,6 +890,7 @@ sub checkcryptodb {
        unless ( "$ret" eq "0" ) {
                message("CRYPTO WARN: The GnuPG isn't configured corectly. Trying now to fix this.");
                message("CRYPTO WARN: It's normal to see this on first execution.");
+               message("CRYPTO WARN: If this message is being shown repeatedly, check if time and date are set correctly, and if IPFire can connect via port 11371 TCP.");
                my $command = "gpg --keyserver pgp.ipfire.org --always-trust --status-fd 2";
                system("$command --recv-key $myid >> $Conf::logdir/gnupg-database.log 2>&1");
                system("$command --recv-key $trustid >> $Conf::logdir/gnupg-database.log 2>&1");