ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Zubkov <igor.zubkov@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] broken ruby-rpm?
Date: Mon, 11 Oct 2010 11:14:03 +0300
Message-ID: <AANLkTi=x07HGcbKPV0VUe1Fkn_ZxCxJ3vZX1pZS58A7f@mail.gmail.com> (raw)

Hi!

$ cat 1.rb
require 'rpm'

file = "padevchooser-0.9.3-alt3.src.rpm"

rpm = RPM::Package::open(file)

puts rpm.changelog.count

rpm.changelog.each do |c|
  puts c.name.inspect
  puts c.text.inspect
  begin
    puts c.time
  rescue ArgumentError
    puts "Bad Argument"
  end
end
$ ruby 1.rb
3
"Igor Zubkov <icesik@altlinux.org> 0.9.3-alt3"
"- apply patch from repocop"
Bad Argument
"Igor Zubkov <icesik@altlinux.org> 0.9.3-alt2"
"- fix desktop file\n- buildreq"
Bad Argument
"Igor Zubkov <icesik@altlinux.org> 0.9.3-alt1"
"- Initial build for Sisyphus"
Bad Argument
$

Это на ruby 1.8.7 EE поставленный через rvm.

$ /usr/bin/ruby 1.rb
3
"Igor Zubkov <icesik@altlinux.org> 0.9.3-alt3"
"- apply patch from repocop"
165467921207-03-18 19:00:00 +0300
"Igor Zubkov <icesik@altlinux.org> 0.9.3-alt2"
"- fix desktop file\n- buildreq"
261302899890-02-16 12:50:56 +0300
"Igor Zubkov <icesik@altlinux.org> 0.9.3-alt1"
"- Initial build for Sisyphus"
74125651477-04-07 11:52:00 +0400
$ /usr/bin/ruby -v
ruby 1.9.2p0 (2010-08-18) [x86_64-linux-gnu]
$

Это с версией из Сизифа. На лицо баг обработки поля time из
%changelog. Помогите починить. Это мешает появления полной поддержки
/:locale/srpm/:Branch/changelog в prometheus2.0.

-- 
Igor Zubkov
http://hi.im/ice


             reply	other threads:[~2010-10-11  8:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11  8:14 Igor Zubkov [this message]
2010-10-11 19:18 ` Alexey I. Froloff

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='AANLkTi=x07HGcbKPV0VUe1Fkn_ZxCxJ3vZX1pZS58A7f@mail.gmail.com' \
    --to=igor.zubkov@gmail.com \
    --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