From: "Nick S. Grechukh" <ngrechukh@ua.fm> To: devel@altlinux.ru Subject: [devel] sis mirroring script Date: Wed, 28 Apr 2004 16:37:37 +0300 Message-ID: <200404281637.39984.ngrechukh@ua.fm> (raw) [-- Attachment #1: Type: text/plain, Size: 449 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
next reply other threads:[~2004-04-28 13:37 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-04-28 13:37 Nick S. Grechukh [this message] 2004-04-28 14:01 ` [devel] " Michael Shigorin 2004-04-28 15:53 ` Nick S. Grechukh 2004-04-28 18:45 ` [devel] components (was: sis mirroring script) Michael Shigorin 2004-04-29 9:52 ` Nick S. Grechukh 2004-05-11 15:00 ` [devel] Re: sis mirroring script Nick S. Grechukh 2004-05-11 16:35 ` 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=200404281637.39984.ngrechukh@ua.fm \ --to=ngrechukh@ua.fm \ --cc=devel@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 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