ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] changelog без загрузки пакета
Date: Wed, 24 Jun 2009 20:04:09 +0400
Message-ID: <m3zlbxr53a.fsf@thinkpad.oxyum.localnet> (raw)
In-Reply-To: <f725ea640906240900va6da8e4x9667d1fd51f58392@mail.gmail.com>

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

Rinat Bikov <bikoz.r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> 24 июня 2009 г. 18:41 пользователь Vladimir Lettiev написал:
>> rpmquery -p --changelog http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/files/i586/RPMS/some.rpm
>>
>> будет загружаться заголовок RPM-пакета (в общем случае скачает кусок ~ 128K)
>
> Ок, спасибо! На основании этого написал скрипт, суть которого в следующем:
>
> fpacket=`rsync rsync://$prefix | awk '{ print $5 }' | grep -e "^$packet-[0-9]" `
> if [ -z "$fpacket" ]; then
>   return 1
> fi
> rpmquery -p $arg ftp://$prefix$fpacket
>
> Работает, правда, не очень быстро,  каждый раз загружает список
> названий всех пакетов, но зато сами пакеты не скачивает :).
ммм... сказать вам чтоли, что rsync умеет glob... :)

Ну и --exclude/--include... :)

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

  reply	other threads:[~2009-06-24 16:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-23 19:06 Rinat Bikov
2009-06-24 10:33 ` Sergey
2009-06-24 13:41 ` Vladimir Lettiev
2009-06-24 16:00   ` Rinat Bikov
2009-06-24 16:04     ` Ivan Fedorov [this message]
2009-06-24 13:55 ` Ildar Mulyukov
2009-06-24 13:57   ` Mikhail Gusarov

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=m3zlbxr53a.fsf@thinkpad.oxyum.localnet \
    --to=ns@altlinux.org \
    --cc=sisyphus@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 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