ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: community@altlinux.ru
Cc: "Dmitry V. Levin" <ldv@altlinux.org>
Subject: [Comm] Re: fglrx dri kernel 2.6.5-std26-up-alt1
Date: Thu, 29 Apr 2004 16:19:33 +0300
Message-ID: <20040429131933.GP3861@osdn.org.ua> (raw)
In-Reply-To: <200404291316.47278.serge@ukr-fin.com.ua>


[-- Attachment #1.1: Type: text/plain, Size: 480 bytes --]

On Thu, Apr 29, 2004 at 01:16:46PM +0300, Serge Polkovnikov wrote:
> > Что-то pkglists странные -- пакеты есть, dist-upgrade нет.
> Странно... У меня обновляются нормально... Сизиф брал с ftp.linux.kiev.ua

Это мои проблемы.  Точнее, скрипта-снапшоттера при некоторых
условиях...

Т.к. я его публиковал, вот поправленный вариант.

PS: может, скинемся такими скриптиками да в пакет?

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #1.2: daily-rsync.sh --]
[-- Type: text/plain, Size: 1557 bytes --]

#!/bin/sh
# script by Michael Shigorin <mike@osdn.org.ua> for snapshotting
# ALT Linux Sisyphus locally; feel free to use and modify, would
# be glad to hear back about changes

# v0.2: fix STUPID bug which manifested when doing several 
# syncs per day *and* the first wasn't done off complete (stable)
# mirror

# mirror/site-specific
SRC="ftp.altlinux.org.ua::ALTLinux/Sisyphus/"
BASEDIR="/var/ftp/pub/EMT/Sisyphus/"

# retry params
MAXCOUNT=5
TIMEOUT=60

# shouldn't need to be changed
DATE=`date +%Y%m%d`
LOGDIR="$BASEDIR/log/"
LOGFILE="$LOGDIR/$DATE.log"
DEST="$BASEDIR/.syncing/"

RSYNCARGS="-av --partial --delete"

RPMARGS="-qp --queryformat %{RELEASE}\n"
TAGFILE="$DEST/files/i586/RPMS/altlinux-release-Sisyphus-alt*.noarch.rpm"

unset OK

# init env
mkdir -p "$BASEDIR" "$LOGDIR"
cd "$BASEDIR"

# create hardlinked copy or init dir; order critical
LAST=`ls -d1 20?????? 2>/dev/null | tail -1`
rm -rf "$DEST"
[ -n "$LAST" ] && cp -al "$LAST" "$DEST" || mkdir -p "$DEST"

# try to sync up
for attempt in `seq 1 $MAXCOUNT`; do 
	rsync $RSYNCARGS "$SRC" "$DEST" 2>&1 >> "$LOGFILE" && {
		OK="yes"
		break
	}
	sleep "$TIMEOUT"
done

[ -z "$OK" ] && exit 1

# get timestamp from specific package and move to it
TIMESTAMP=`rpm $RPMARGS $TAGFILE | tail -1 | sed 's/alt//'`

[ -d "$TIMESTAMP" ] && {
	rsync $RSYNCARGS "$DEST" "$TIMESTAMP"/ 2>&1 >> "$LOGFILE"
} || {
	mv "$DEST" "$TIMESTAMP" 2>>"$LOGFILE"
}

touch -d "$DATE" "$TIMESTAMP"
rm -f current
ln -s "$TIMESTAMP" current

rm -rf "$DEST"

# that's all :)
echo "** $TIMESTAMP sync OK" >> "$LOGFILE"

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

      reply	other threads:[~2004-04-29 13:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-26 19:45 [Comm] " Roman Lesnichenko
2004-04-26 19:50 ` Roman Lesnichenko
2004-04-26 20:04   ` Sergey Vlasov
2004-04-26 20:14   ` [Comm] " Konstantin A. Lepikhov
2004-04-28 20:11     ` Roman Lesnichenko
2004-04-29  5:02       ` Konstantin A. Lepikhov
2004-04-28 20:58     ` Roman Lesnichenko
2004-04-29  4:52       ` Sergey Vlasov
2004-04-29 10:10         ` Michael Shigorin
2004-04-29 10:16           ` Serge Polkovnikov
2004-04-29 13:19             ` Michael Shigorin [this message]

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=20040429131933.GP3861@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=community@altlinux.ru \
    --cc=ldv@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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