ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] sis mirroring script
@ 2004-04-28 13:32 Nick S. Grechukh
  0 siblings, 0 replies; only message in thread
From: Nick S. Grechukh @ 2004-04-28 13:32 UTC (permalink / raw)
  To: devel

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

вот похвастаюсь :-)
исходники: две кружки кофе и 20 минут. 
результат: скриптик для скачивания компоненты kernel сизифа с учетом юзерского 
блэклиста, с версионированием, с юзерской структурой компонент (вместо 
большого classic) и много чего... в общем-то request for comment, там еще 
дописывать и дописывать. пока на .kernel буду  обкатывать.

-- 
-------------------------
WBR, Nick S. Grechukh

Refractory Trading House
network administrator

[-- Attachment #2: _updatesystem_3 --]
[-- Type: text/plain, Size: 612 bytes --]

sis_site="ftp.altlinux.ru"
sis_url="/pub/distributions/ALTLinux/Sisyphus/i586/RPMS.kernel"
local_path="/mnt/win_d/sisyph/files.kernel/i586"
today_folder=`date +%Y%m%d`
[ -d $local_path/RPMS.$today_folder ] || mkdir $local_path/RPMS.$today_folder
lftp -c "open $sis_site; cd $sis_url; ls " | awk '{print $9}' | while read sp; do s=0; [ -e i586/RPMS.kernel/$sp ] || (for bl_entry in `cat blacklist`; do echo $sp | grep -q "$bl_entry" && s=1; done; [ $s -eq 1 ] || echo $sp); done | (echo open $sis_site; echo cd $sis_url; echo lcd $local_path/RPMS.$today_folder; while read pkg; do echo get -c $pkg; done) | lftp


[-- Attachment #3: blacklist --]
[-- Type: text/plain, Size: 52 bytes --]

kernel-source-2.4.21
kernel-source-2.4.23
kernel22


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-28 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-28 13:32 [devel] sis mirroring script Nick S. Grechukh

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