ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Rinat Bikov <bikoz.r@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] changelog без загрузки пакета
Date: Wed, 24 Jun 2009 21:00:39 +0500
Message-ID: <f725ea640906240900va6da8e4x9667d1fd51f58392@mail.gmail.com> (raw)
In-Reply-To: <20090624134132.GB17960@ubuntu>

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

Работает, правда, не очень быстро,  каждый раз загружает список
названий всех пакетов, но зато сами пакеты не скачивает :).

-- 
С уважением, Ринат Биков.

  reply	other threads:[~2009-06-24 16:00 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 [this message]
2009-06-24 16:04     ` Ivan Fedorov
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=f725ea640906240900va6da8e4x9667d1fd51f58392@mail.gmail.com \
    --to=bikoz.r@gmail.com \
    --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