From: "Nirbheek Chauhan" <nirbheek@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: scripts/
Date: Fri, 18 Mar 2011 09:59:15 +0000 (UTC) [thread overview]
Message-ID: <5b8a707da43d5b4ee7b2642b21c7ec3d3ab60ffd.nirbheek@gentoo> (raw)
commit: 5b8a707da43d5b4ee7b2642b21c7ec3d3ab60ffd
Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 18 09:58:47 2011 +0000
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Fri Mar 18 09:58:53 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=5b8a707d
gst-plugins-bump.py: misc small features/fixes
---
scripts/gst-plugins-bump.py | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/scripts/gst-plugins-bump.py b/scripts/gst-plugins-bump.py
index e4f18b3..f53bb66 100755
--- a/scripts/gst-plugins-bump.py
+++ b/scripts/gst-plugins-bump.py
@@ -19,7 +19,7 @@ from portage.output import EOutput
def usage():
print "Usage: $0 <base|good|bad|ugly> <version> [core version] [base version]"
print ""
- print " If core/base version is unspecified or blank, it's assumed to be the same"
+ print " If core/base version is unspecified or blank, it will not be changed"
if len(sys.argv) < 3 or len(sys.argv) > 5:
usage()
@@ -51,7 +51,6 @@ portdb.porttrees = [PORTDIR]
GSTPREFIX = 'gst-plugins-'
GSTECLASS = GSTPREFIX + GSTLIB
GSTLIB = 'media-libs/' + GSTPREFIX + GSTLIB
-GSTPLUGIN_CPVS = []
GSTCAT = 'media-plugins'
GSTLIBS = {'media-libs/gstreamer': GSTCOREVER,
'media-libs/gst-plugins-base': GSTBASEVER,
@@ -133,6 +132,7 @@ def isgstplugin(cpv):
# We do this outside the loop so that we get notified while stuff gets cached
eoutput.ebegin("Getting a list of all gst-plugins")
cp_all = portdb.cp_all(categories=[GSTCAT])
+gst_cpv_all = []
eoutput.eend(0)
eoutput.ebegin("Getting the next gst-plugin")
# Does a first-time-expensive xmatch call
@@ -142,11 +142,11 @@ for cp in cp_all:
cpv = get_cpv(cp)
if not isgstplugin(cpv):
continue
+ new_cpv = get_cpv(cp, GSTLIBVER)
print ">>> Current package is %s" % cpv
- GSTPLUGIN_CPVS.append(cpv)
os.chdir(get_ebuild_dir(cpv))
old_ebuild = get_ebuild(cpv)
- new_ebuild = get_ebuild(get_cpv(cp, GSTLIBVER))
+ new_ebuild = get_ebuild(new_cpv)
eoutput.ebegin("Copying %s to %s" % (old_ebuild, new_ebuild))
shutil.copyfile(old_ebuild, new_ebuild)
eoutput.eend(0)
@@ -175,5 +175,10 @@ for cp in cp_all:
subprocess.check_call('cvs rm -f %s' % ebuild, shell=True, stderr=subprocess.PIPE)
eoutput.eend(0)
if os.path.isdir('files'):
- print portage.output.yellow(">>> Package has a files/ directory, please double-check obsolete files")
+ print portage.output.red(">>> Package has a files/ directory, please double-check obsolete files")
print ">>> All done with %s!" % cp
+ gst_cpv_all.append(new_cpv)
+print ""
+print "Here's a list for emerge :-)"
+for cpv in gst_cpv_all:
+ print '=%s' % cpv,
next reply other threads:[~2011-03-18 9:59 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 9:59 Nirbheek Chauhan [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-04-03 19:42 [gentoo-commits] proj/gnome:master commit in: scripts/ Matt Turner
2020-04-03 19:42 Matt Turner
2020-03-28 8:31 Mart Raudsepp
2020-03-10 22:05 Matt Turner
2019-02-07 11:58 Mart Raudsepp
2018-04-25 10:32 Mart Raudsepp
2018-01-10 3:25 Mart Raudsepp
2012-04-01 21:14 Nirbheek Chauhan
2012-04-01 19:12 Nirbheek Chauhan
2011-08-18 6:23 Nirbheek Chauhan
2011-07-12 21:15 Nirbheek Chauhan
2011-05-21 18:38 Nirbheek Chauhan
2011-05-19 12:35 Gilles Dartiguelongue
2011-04-13 9:57 Nirbheek Chauhan
2011-04-09 6:29 Nirbheek Chauhan
2011-03-28 16:15 Nirbheek Chauhan
2011-03-28 15:04 Nirbheek Chauhan
2011-03-26 1:58 Nirbheek Chauhan
2011-03-23 21:59 Nirbheek Chauhan
2011-03-23 21:59 Nirbheek Chauhan
2011-03-23 21:59 Nirbheek Chauhan
2011-03-23 19:21 Gilles Dartiguelongue
2011-03-23 10:39 Gilles Dartiguelongue
2011-03-20 8:11 Nirbheek Chauhan
2011-03-18 8:23 Nirbheek Chauhan
2011-03-17 17:12 Nirbheek Chauhan
2011-03-15 13:08 Nirbheek Chauhan
2011-03-14 18:41 Nirbheek Chauhan
2011-03-12 20:10 Nirbheek Chauhan
2011-03-04 15:40 Nirbheek Chauhan
2011-02-18 4:40 Nirbheek Chauhan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b8a707da43d5b4ee7b2642b21c7ec3d3ab60ffd.nirbheek@gentoo \
--to=nirbheek@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox