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 1Q0Uya-0007li-DL for garchives@archives.gentoo.org; Fri, 18 Mar 2011 08:24:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DA61E0444; Fri, 18 Mar 2011 08:23:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CA3F6E0444 for ; Fri, 18 Mar 2011 08:23:56 +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 2EAD71B4043 for ; Fri, 18 Mar 2011 08:23:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 918448006A for ; Fri, 18 Mar 2011 08:23:55 +0000 (UTC) From: "Nirbheek Chauhan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nirbheek Chauhan" Message-ID: <5b082265220a2c7fc7b55061916f3d288100560b.nirbheek@gentoo> Subject: [gentoo-commits] proj/gnome:master commit in: scripts/ X-VCS-Repository: proj/gnome X-VCS-Files: scripts/gst-plugins-bump.py scripts/obsolete_ebuilds.py X-VCS-Directories: scripts/ X-VCS-Committer: nirbheek X-VCS-Committer-Name: Nirbheek Chauhan X-VCS-Revision: 5b082265220a2c7fc7b55061916f3d288100560b Date: Fri, 18 Mar 2011 08:23:55 +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: 66a0c8badb3e5a0382521000a86e593f commit: 5b082265220a2c7fc7b55061916f3d288100560b Author: Nirbheek Chauhan gentoo org> AuthorDate: Fri Mar 18 07:28:40 2011 +0000 Commit: Nirbheek Chauhan gentoo org> CommitDate: Fri Mar 18 07:28:40 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3D5b082265 scripts/gst-plugins-bump: warn if filesdir exists * Cosmetic change to obsolete_ebuilds.py --- scripts/gst-plugins-bump.py | 2 ++ scripts/obsolete_ebuilds.py | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/gst-plugins-bump.py b/scripts/gst-plugins-bump.py index 1d6e5c1..e4f18b3 100755 --- a/scripts/gst-plugins-bump.py +++ b/scripts/gst-plugins-bump.py @@ -174,4 +174,6 @@ for cp in cp_all: eoutput.ebegin("Running cvs rm -f %s" % ebuild) subprocess.check_call('cvs rm -f %s' % ebuild, shell=3DTrue,= stderr=3Dsubprocess.PIPE) eoutput.eend(0) + if os.path.isdir('files'): + print portage.output.yellow(">>> Package has a files/ direct= ory, please double-check obsolete files") print ">>> All done with %s!" % cp diff --git a/scripts/obsolete_ebuilds.py b/scripts/obsolete_ebuilds.py index 23af29c..558c2d4 100755 --- a/scripts/obsolete_ebuilds.py +++ b/scripts/obsolete_ebuilds.py @@ -8,12 +8,12 @@ # based on the current keywords # =20 +import sys =20 import portage =20 def usage(): - print "Usage: $0 " - print "" + print "Usage: %s " % sys.argv[0] =20 ############### ## Constants ## @@ -121,7 +121,6 @@ def get_obsolete(cp): return obsolete_cpvs =20 if __name__ =3D=3D "__main__": - import sys if len(sys.argv) < 2: usage() sys.exit(1)