From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 479DF13877A for ; Wed, 30 Jul 2014 04:07:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BFBEE0961; Wed, 30 Jul 2014 04:07:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B32C8E0961 for ; Wed, 30 Jul 2014 04:07:47 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B71A434013B for ; Wed, 30 Jul 2014 04:07:46 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id 2AD5B2004E; Wed, 30 Jul 2014 04:07:43 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-projects commit in pax-utils: lddtree.py X-VCS-Repository: gentoo-projects X-VCS-Files: lddtree.py X-VCS-Directories: pax-utils X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20140730040743.2AD5B2004E@flycatcher.gentoo.org> Date: Wed, 30 Jul 2014 04:07:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7beefe8b-05c7-4bb8-add7-d6ed31a4ac3d X-Archives-Hash: d841a39bac927109b9c0717f8b021ea9 vapier 14/07/30 04:07:43 Modified: lddtree.py Log: lddtree.py: use basename of argv[0] for warnings as it looks nicer Revision Changes Path 1.46 pax-utils/lddtree.py file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.46&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?rev=1.46&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py?r1=1.45&r2=1.46 Index: lddtree.py =================================================================== RCS file: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v retrieving revision 1.45 retrieving revision 1.46 diff -u -r1.45 -r1.46 --- lddtree.py 30 Jul 2014 04:06:56 -0000 1.45 +++ lddtree.py 30 Jul 2014 04:07:43 -0000 1.46 @@ -4,7 +4,7 @@ # Copyright 2012-2014 The Chromium OS Authors # Use of this source code is governed by a BSD-style license (BSD-3) # pylint: disable=C0301 -# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.45 2014/07/30 04:06:56 vapier Exp $ +# $Header: /var/cvsroot/gentoo-projects/pax-utils/lddtree.py,v 1.46 2014/07/30 04:07:43 vapier Exp $ # TODO: Handle symlinks. @@ -29,7 +29,7 @@ def warn(msg, prefix='warning'): """Write |msg| to stderr with a |prefix| before it""" - print('%s: %s: %s' % (sys.argv[0], prefix, msg), file=sys.stderr) + print('%s: %s: %s' % (os.path.basename(sys.argv[0]), prefix, msg), file=sys.stderr) def err(msg, status=1): @@ -386,7 +386,7 @@ def _ShowVersion(_option, _opt, _value, _parser): - d = '$Id: lddtree.py,v 1.45 2014/07/30 04:06:56 vapier Exp $'.split() + d = '$Id: lddtree.py,v 1.46 2014/07/30 04:07:43 vapier Exp $'.split() print('%s-%s %s %s' % (d[1].split('.')[0], d[2], d[3], d[4])) sys.exit(0)