From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 29 Apr 2004 16:19:33 +0300 From: Michael Shigorin To: community@altlinux.ru Message-ID: <20040429131933.GP3861@osdn.org.ua> Mail-Followup-To: community@altlinux.ru, "Dmitry V. Levin" References: <200404262245.57215.community@donec.net> <20040429045206.GA2653@sirius.home> <20040429101054.GR26609@osdn.org.ua> <200404291316.47278.serge@ukr-fin.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9Q79yvCDNTHf0qBd" Content-Disposition: inline In-Reply-To: <200404291316.47278.serge@ukr-fin.com.ua> User-Agent: Mutt/1.4.1i Cc: "Dmitry V. Levin" Subject: [Comm] Re: fglrx dri kernel 2.6.5-std26-up-alt1 X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.4 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 13:19:38 -0000 Archived-At: List-Archive: List-Post: --9Q79yvCDNTHf0qBd Content-Type: multipart/mixed; boundary="9CzcV6dAFIr7O1Ie" Content-Disposition: inline Content-Transfer-Encoding: 8bit --9CzcV6dAFIr7O1Ie Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Apr 29, 2004 at 01:16:46PM +0300, Serge Polkovnikov wrote: > > Что-то pkglists странные -- пакеты есть, dist-upgrade нет. > Странно... У меня обновляются нормально... Сизиф брал с ftp.linux.kiev.ua Это мои проблемы. Точнее, скрипта-снапшоттера при некоторых условиях... Т.к. я его публиковал, вот поправленный вариант. PS: может, скинемся такими скриптиками да в пакет? -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --9CzcV6dAFIr7O1Ie Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="daily-rsync.sh" #!/bin/sh # script by Michael Shigorin 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" --9CzcV6dAFIr7O1Ie-- --9Q79yvCDNTHf0qBd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAkQDlbsPDprYMm3IRAlBuAJsFgtoCGRZDGfY+dG6QKyBVA/oaJwCg3qK6 pMvibsOxVNqrLrBXSeSnaNQ= =Pem8 -----END PGP SIGNATURE----- --9Q79yvCDNTHf0qBd--