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 1Pomhu-0006Iy-KW for garchives@archives.gentoo.org; Mon, 14 Feb 2011 00:54:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01E47E09CE; Mon, 14 Feb 2011 00:54:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C6C2DE09CE for ; Mon, 14 Feb 2011 00:54:14 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AC291B4085 for ; Mon, 14 Feb 2011 00:54:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 940DE80072 for ; Mon, 14 Feb 2011 00:54:13 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: Subject: [gentoo-commits] proj/layman:overlord_merge commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/cli.py layman/constants.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: cc15f2551e105540850101572ccba275a6fc1ace Date: Mon, 14 Feb 2011 00:54:13 +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: 4ddc24c52e3c561d16f167bc85bd54c2 commit: cc15f2551e105540850101572ccba275a6fc1ace Author: Brian Dolbec gmail com> AuthorDate: Mon Feb 14 00:53:33 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon Feb 14 00:53:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dcc15f255 fix the incorrect exit code settings which are opposite the True/False th= at the api returns --- layman/cli.py | 7 ++++--- layman/constants.py | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/layman/cli.py b/layman/cli.py index 3277c1b..8f94f4a 100644 --- a/layman/cli.py +++ b/layman/cli.py @@ -27,7 +27,8 @@ import os, sys from layman.api import LaymanAPI from layman.utils import (decode_selection, encoder, get_encoding, pad, terminal_width) -from layman.constants import NOT_OFFICIAL_MSG, NOT_SUPPORTED_MSG +from layman.constants import (NOT_OFFICIAL_MSG, NOT_SUPPORTED_MSG, + FAILURE, SUCCEED) =20 =20 =20 @@ -180,9 +181,9 @@ class Main(object): os.umask(old_umask) =20 if not result: - sys.exit(0) + sys.exit(FAILURE) else: - sys.exit(1) + sys.exit(SUCCEED) =20 =20 def Fetch(self): diff --git a/layman/constants.py b/layman/constants.py index 6962867..6f53de3 100644 --- a/layman/constants.py +++ b/layman/constants.py @@ -50,3 +50,6 @@ WARN_LEVEL =3D 4 INFO_LEVEL =3D 4 DEBUG_LEVEL =3D 4 DEBUG_VERBOSITY =3D 2 + +FAILURE =3D 1 +SUCCEED =3D 0 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 1PorWZ-0004vA-N6 for garchives@archives.gentoo.org; Mon, 14 Feb 2011 06:03:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96E2CE09D6; Mon, 14 Feb 2011 06:00:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 69FEAE09D4 for ; Mon, 14 Feb 2011 06:00:35 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2173D1B4237 for ; Mon, 14 Feb 2011 06:00:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8E2838006A for ; Mon, 14 Feb 2011 06:00:34 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/cli.py layman/constants.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: cc15f2551e105540850101572ccba275a6fc1ace Date: Mon, 14 Feb 2011 06:00:34 +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: 9f997b2056e899ba1d2ece5bb94e0e62 Message-ID: <20110214060034.AXlLY_iK6UZ3iErNGmUoJoNSGR66wQg6v9juFnXva5Y@z> commit: cc15f2551e105540850101572ccba275a6fc1ace Author: Brian Dolbec gmail com> AuthorDate: Mon Feb 14 00:53:33 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon Feb 14 00:53:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dcc15f255 fix the incorrect exit code settings which are opposite the True/False th= at the api returns --- layman/cli.py | 7 ++++--- layman/constants.py | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/layman/cli.py b/layman/cli.py index 3277c1b..8f94f4a 100644 --- a/layman/cli.py +++ b/layman/cli.py @@ -27,7 +27,8 @@ import os, sys from layman.api import LaymanAPI from layman.utils import (decode_selection, encoder, get_encoding, pad, terminal_width) -from layman.constants import NOT_OFFICIAL_MSG, NOT_SUPPORTED_MSG +from layman.constants import (NOT_OFFICIAL_MSG, NOT_SUPPORTED_MSG, + FAILURE, SUCCEED) =20 =20 =20 @@ -180,9 +181,9 @@ class Main(object): os.umask(old_umask) =20 if not result: - sys.exit(0) + sys.exit(FAILURE) else: - sys.exit(1) + sys.exit(SUCCEED) =20 =20 def Fetch(self): diff --git a/layman/constants.py b/layman/constants.py index 6962867..6f53de3 100644 --- a/layman/constants.py +++ b/layman/constants.py @@ -50,3 +50,6 @@ WARN_LEVEL =3D 4 INFO_LEVEL =3D 4 DEBUG_LEVEL =3D 4 DEBUG_VERBOSITY =3D 2 + +FAILURE =3D 1 +SUCCEED =3D 0