ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Kirill A. Shutemov" <kas@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Архив Сизифа
Date: Tue, 30 May 2006 14:05:17 +0300
Message-ID: <20060530110516.GG8129@pc152.sam-solutions.net> (raw)
In-Reply-To: <20060529114125.GG4821@basalt.office.altlinux.org>


[-- Attachment #1.1: Type: text/plain, Size: 831 bytes --]

On 15:41 Mon 29 May, Dmitry V. Levin wrote:
> On Mon, May 29, 2006 at 10:17:50AM +0300, Kirill A. Shutemov wrote:
> > Формат того что отдаёт git-srpmimport может не соответствовать требованиям
> > отдельно взятого мэйнтэйнера. Я бы предпочёл сделать это вручную(с
> > помощью своих скриптов).
> 
> Я был бы рад, если бы предпочтения соответствовали или хотя бы у
> git-srpmimport была возможность соответствовать разным предпочтениям.

В аттаче патч для поддержки меграции changelog'а из srpm в git.

-- 
Kirill A. Shutemov				Belarus, Minsk
E-mail:	k.shutemov (AT) sam-solutions.net
JID: kas (AT) altlinux.org
ICQ: 152302675

Все верно.. только большая просьба - заполнять нашу bugzilla.altlinux.ru
сообщениями об ошибках. Поверьте, их как минимум прочитают. Как максимум -
исправят.
		-- rider in community@

[-- Attachment #1.2: srpmlog2gitlog.patch --]
[-- Type: text/plain, Size: 1408 bytes --]

diff --git a/git-srpmimport b/git-srpmimport
index b538b13..d0767a7 100755
--- a/git-srpmimport
+++ b/git-srpmimport
@@ -240,13 +240,14 @@ import()
 	verbose "Processing $srpm"
 	srpm="$(readlink -ev "$srpm")"
 
-	local header name version buildtime filelist author f
+	local header name version buildtime filelist changelog author message f
 	header="$(od -A n -N 8 -t x1 -- "$srpm")" &&
 	[ -n "$header" -a -z "${header## ed ab ee db ?? ?? 00 01}" ] &&
 	name="$(rpmquery -p --qf '%{NAME}' -- "$srpm")" &&
 	version="$(rpmquery -p --qf '%{VERSION}-%{RELEASE}' -- "$srpm")" &&
 	buildtime="$(rpmquery -p --qf '%{BUILDTIME}' -- "$srpm")" &&
-	filelist="$(rpm2cpio "$srpm" |cpio --list --quiet )" ||
+	filelist="$(rpm2cpio "$srpm" |cpio --list --quiet )" &&
+	changelog="$(rpmquery -p --qf '%{CHANGELOGTEXT}' -- "$srpm")" ||
 		fatal "$srpm: Not a valid source rpm package"
 
 	author="$(rpmquery -p --qf '%{CHANGELOGNAME}\n' -- "$srpm" |
@@ -315,8 +316,9 @@ import()
 
 	optimize_rules "$gear_rules"
 
+	message=`printf '%s\n\n%s' "$version" "$changelog"`
 	TZ=UTC faketime -d "1970-01-01 $buildtime seconds" -- \
-		git-commit -a -m "$version" ${author:+--author "$author"}
+		git-commit -a -m "$message" ${author:+--author "$author"}
 	verbose "Committed $name $version"
 	TZ=UTC faketime -d "1970-01-01 $buildtime seconds" -- \
 		git-tag -a -m "$name $version" "$version"

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

  parent reply	other threads:[~2006-05-30 11:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-28 16:45 Kirill A. Shutemov
2006-05-28 19:30 ` Денис Смирнов
2006-05-28 19:47   ` Alex V. Myltsev
2006-05-29  9:59     ` Денис Смирнов
2006-05-28 19:51 ` Dmitry V. Levin
2006-05-29  7:17   ` Kirill A. Shutemov
2006-05-29 11:41     ` Dmitry V. Levin
2006-05-30  7:43       ` Kirill A. Shutemov
2006-05-30 14:37         ` Konstantin A. Lepikhov
2006-05-31 22:50         ` Dmitry V. Levin
2006-06-01 10:07           ` Kirill A. Shutemov
2006-05-30 11:05       ` Kirill A. Shutemov [this message]
2006-05-30 23:01         ` [devel] git-srpmimport Dmitry V. Levin
2006-05-29  8:42   ` [devel] Архив Сизифа Michael Shigorin
2006-05-29  9:57   ` Денис Смирнов
2006-05-29 14:59     ` Anton Farygin

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=20060530110516.GG8129@pc152.sam-solutions.net \
    --to=kas@altlinux.ru \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git