From 5b85a493bba25de492c0c551e6014a6da46e9776 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 19 Jan 2010 00:19:25 -0500 Subject: [PATCH] update gentoo stuff --- .profile.d/gentoo.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index 34bb31f..3e9a6bc 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -64,6 +64,20 @@ git_gentoo_url() { sed "s,^commit ,http://git.overlays.gentoo.org/gitweb/?p=${repo};a=commitdiff;h=," } svn_gentoo_url() { + if [[ -z $* ]] ; then + svn info | \ + awk '{ + if ($1 == "URL:") { + URL = "http://sources.gentoo.org/" gensub(/.*svnroot\/([^/]*).*/,"\\1",""); + } else if ($1 == "Revision:") { + rev = $2 + URL = URL "?rev=" (rev + 1) "&view=rev" + } + } + END { print URL }' + return 0 + fi + local f for f in "$@" ; do svn info "${f}" | \ @@ -146,19 +160,15 @@ submit_bug_stable() { return 1 fi bugz post \ + --batch \ -u vapier@gentoo.org \ -t "Stabilize ${cat}/${pkg}" \ -d "${msg}" \ -a "${maintainer}" \ --cc="${cc}" \ - -U "" \ -k STABLEREQ \ --product='Gentoo Linux' \ --component=Ebuilds \ - --version= \ - --no-append-command \ - --depends-on= \ - --blocked= \ --priority=P2 \ --severity=enhancement } -- 2.39.5