ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: [sisyphus] Re: I: Sisyphus-20050831 packages: +37! -1 +44 (4686)
Date: Thu, 8 Sep 2005 01:43:52 +0400
Message-ID: <20050907214352.GY3539@solemn.turbinal.org> (raw)
In-Reply-To: <43156AC4.6030000@epam.com>

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

On Wed, Aug 31, 2005 at 11:31:00AM +0300, Sviataslau Svirydau wrote:
> Ограничение на alt - хороший вариант. Плюс поставить ограничение на,
> скажем, максимум 3 последние записи - и для начала подойдет. А потом
> посмотрим - что понравится и что нет, и тогда можно будет подкорректировать.

"the same packager, for last 3 months, no more than 3 entires"

-rpm_lastchange() { rpm -qp --lastchange -- "$@" |sed -ne \
-	's/@\([[:alnum:]-]\+\)\.[[:alnum:]]\+>/@\1>/;/[[:alnum:]]/p'; }
+
+rpm_recent_changes()
+{
+	perl -MRPM::Header -Mstrict -l - "$@" <<'__EOF__'
+	my ($f) = @ARGV;
+	tie my %hdr, "RPM::Header", $f or die "$f: $RPM::err\n";
+	my ($guy0, $time0);
+	for my $i (0 .. $#{$hdr{CHANGELOGTIME}}) {
+		use Date::Format qw(time2str);
+		my $time = $hdr{CHANGELOGTIME}[$i];
+		my $date = time2str("%a %b %d %Y", $time);
+		my $info = "* $date $hdr{CHANGELOGNAME}[$i]";
+		my $guy;
+		$info =~ s{(?<=<)([^<>]+?)(?=>)}{
+			local $_ = $1;
+			s/ at /@/g; s/ dot /./g;
+			s/@([-\w._]+)[.]\w+\z/\@$1/;
+			$guy = $_;
+		}e;
+		print $info;
+		$guy0 = $guy if $i == 0;
+		$time0 = $time if $i == 0;
+		# the same packager, for last 3 months, no more than 3 entires
+		my $again = $guy eq $guy0 && $time+3600*24*30*3 > $time0 && $i < 3;
+		print $hdr{CHANGELOGTEXT}[$i] if $again || $i == 0;
+		last if not $again;
+	}
+__EOF__
+}

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

  reply	other threads:[~2005-09-07 21:43 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30 20:07 [sisyphus] " Alexey M. Tourbin
2005-08-31  7:03 ` [sisyphus] specspo Michael Shigorin
2005-08-31  7:21   ` Alexey I.Froloff
2005-08-31  8:03     ` [sisyphus] specspo Michael Shigorin
2005-08-31  8:30       ` Alexey I.Froloff
2005-08-31  8:59         ` Alexey I.Froloff
2005-08-31  9:15         ` Michael Shigorin
2005-08-31 10:13     ` [sisyphus] specspo Вячеслав Диконов
2005-08-31 11:03       ` Alexey I.Froloff
2005-08-31 11:57         ` Dmitry V. Levin
2005-08-31 21:50         ` Vitaly Lipatov
2005-09-01  6:00           ` Віталь Хілько
2005-08-31  7:12 ` [sisyphus] I: Sisyphus-20050831 packages: +37! -1 +44 (4686) Sviataslau Svirydau
2005-08-31  7:59   ` [sisyphus] " Alexey Tourbin
2005-08-31  8:31     ` Sviataslau Svirydau
2005-09-07 21:43       ` Alexey Tourbin [this message]
2005-08-31 12:00     ` Dmitry V. Levin
2005-08-31 14:12       ` Alexey Tourbin
2005-08-31 23:25         ` Alexey Tourbin
2005-08-31  8:40   ` [sisyphus] " Alexey I.Froloff
2005-08-31 12:24     ` Sviataslau Svirydau
2005-08-31  8:01 ` [sisyphus] " Michael Shigorin

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=20050907214352.GY3539@solemn.turbinal.org \
    --to=at@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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