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 1SGxQN-0007cp-3d for garchives@archives.gentoo.org; Sun, 08 Apr 2012 19:05:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 695B4E0BD0; Sun, 8 Apr 2012 19:04:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3C014E0BD0 for ; Sun, 8 Apr 2012 19:04:37 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0B441B40AB for ; Sun, 8 Apr 2012 19:04:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 6A541E5402 for ; Sun, 8 Apr 2012 19:04:35 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1333910469.0bfa1d0fd93c9558411f044df8c7b90797b88147.sping@gentoo> Subject: [gentoo-commits] proj/overlint:master commit in: overlint/ X-VCS-Repository: proj/overlint X-VCS-Files: overlint/cli.py X-VCS-Directories: overlint/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 0bfa1d0fd93c9558411f044df8c7b90797b88147 X-VCS-Branch: master Date: Sun, 8 Apr 2012 19:04:35 +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: 236c9f5f-25a6-4562-ace2-8a23baa731e9 X-Archives-Hash: de2c35c8e4a139a9259b1705e597cddc commit: 0bfa1d0fd93c9558411f044df8c7b90797b88147 Author: Sebastian Pipping pipping org> AuthorDate: Sun Apr 8 18:41:09 2012 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sun Apr 8 18:41:09 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/overlint.git;= a=3Dcommit;h=3D0bfa1d0f Check if overlay directory exists --- overlint/cli.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/overlint/cli.py b/overlint/cli.py index e2f8087..1a42c17 100644 --- a/overlint/cli.py +++ b/overlint/cli.py @@ -132,6 +132,10 @@ def main(args): =20 conf.overlay_path =3D sanitize_overlay_path(conf.overlay_path) =20 + if not os.path.isdir(conf.overlay_path): + print("ERROR: Path \"%s\" is not a diretory" % conf.overlay_path, file= =3Dsys.stderr) + return 1 + missed_revision_bumps_tree =3D dict() missed_version_bumps_tree =3D dict() ebuild_changes_tree =3D dict()