From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QiZzq-0007Xc-IL for garchives@archives.gentoo.org; Sun, 17 Jul 2011 22:39:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BED4721C31B; Sun, 17 Jul 2011 22:39:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8CEFF21C31B for ; Sun, 17 Jul 2011 22:39:26 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 777191B400A for ; Sun, 17 Jul 2011 22:39:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D99858003D for ; Sun, 17 Jul 2011 22:39:24 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/basepm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/basepm/pkg.py X-VCS-Directories: gentoopm/basepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f86fe3eb05f9bd81e1315e88e08b94f348a2d060 Date: Sun, 17 Jul 2011 22:39:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2613c5a336ad80453679c93cf3bb67d3 commit: f86fe3eb05f9bd81e1315e88e08b94f348a2d060 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Sun Jul 17 22:40:11 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Sun Jul 17 22:40:11 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3Df86fe3eb Py3: fix using None as a sort key. --- gentoopm/basepm/pkg.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gentoopm/basepm/pkg.py b/gentoopm/basepm/pkg.py index 91b0264..23790ab 100644 --- a/gentoopm/basepm/pkg.py +++ b/gentoopm/basepm/pkg.py @@ -121,7 +121,7 @@ class PMPackage(ABCObject): try: return os.path.getmtime(path) except OSError: - return None + return -1 =20 files =3D ('environment.bz2', 'environment') # Take the newer one.