Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP5sG-0000iM-RN for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jul 2016 10:34:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bP5sG-0003Hv-ET for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jul 2016 10:34:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bP5sG-0003Hp-6R for pgadmin-hackers@postgresql.org; Mon, 18 Jul 2016 10:34:08 +0000 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bP5s8-0003r8-Iq for pgadmin-hackers@postgresql.org; Mon, 18 Jul 2016 10:34:07 +0000 Received: by mail-io0-x234.google.com with SMTP id q83so155936512iod.1 for ; Mon, 18 Jul 2016 03:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MjcCdv1xdTFsMTAjYM0xRDdOIFQSlnjT4aSQhVx+Zp0=; b=YpRnkKUa3k9avF06ulTHpGSspFxWdtAIcm+CP/By73lY0WBrL5gJCgx3M8iry2na3f sTmYa57ZdtL+l/W1V9OaaBhUJdZfD2zfnp2BjalTyUsCFmCcYgeQ4bNMt3Bzf9pzHwd4 MnKtwbzt0VMP0cDWDYIZjISSsZcZRsYXrawiHfxJM1QGnGr5CkNkWpTP70mZwBHHA3TN qTptc3KwaRrXy3kRlArmcSwLEJu1f+G5THcIKdsmsNNVp3+bk/jiAJ9CHASZ0Jz1VNmM eYd6iVS9pK5lnNSHTnJyfOrGzN6kgcYf0bUXVh8oN4r33vjkkLWCpeK4rW6AqNmpRwHP b17A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MjcCdv1xdTFsMTAjYM0xRDdOIFQSlnjT4aSQhVx+Zp0=; b=lw0Smwu1HYRn+eNf9GN/pABX5NNWhPPlWV3ln2DILgfgCxvjV7iRVFJYVdhmLyvA07 KcsFRHT+XUVovBH9cxsA7lXD208ywU10tL9ltrr7oUUwFhYHr11OD7jMg6r1NMLZUdfT PQwH8XXUvECO+jJyKaTegtchKRAA950OeYzPb07BEyZUDW/mZSWVncG8S929vhI0njzG mR4fKZCqjU7vO7ADb7f4qN1BExar8TSla//tDCgaXecOlhdSJAu1ZArkM0glELFc4JQ2 qRJwr9n6YQXuweudoD107s5SqXMr2VIAGxMMIULClvuWiwKrrpJBNX+DXH04F0ftFx3q G8iQ== X-Gm-Message-State: ALyK8tJMgZty5g6SaAqHbe04MAvCEleoMm+k76y90AzZ4TL3C3zkLLBZ5k8KrR4sauRqHHP3KXrrGF+QPD5HIw== X-Received: by 10.107.183.85 with SMTP id h82mr33727045iof.63.1468838038654; Mon, 18 Jul 2016 03:33:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Mon, 18 Jul 2016 03:33:57 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 18 Jul 2016 11:33:57 +0100 Message-ID: Subject: Re: Logical comparison on startup pgadmin4 To: Colin Beckingham Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org On Mon, Jul 18, 2016 at 11:29 AM, Colin Beckingham wrote: > Each time I run pgadmin4 I run a git pull to get latest. Then launch from > web browser at 5050, no problem. > > However a message pops up to say that I am running this version but the > current is something else. For example: > > "You are currently running version 1.0-beta2.1 of pgAdmin 4, however the > current version is 1.0-beta2. Please click here for more information." > > It looks like a check is happening to remind me to upgrade, but in this case > the upgrade has already happened. It looks like maybe a comparison operator > is not quite right for version/subversion or am I reading incorrectly? The code just looks for a mis-match, as the version suffix is an arbitrary string. That's the downside of using GIT code which may have a different version than the update service knows about. You can disable the version check in your config file to avoid the issue. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers