From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SESyq-0004Az-Ul for garchives@archives.gentoo.org; Sun, 01 Apr 2012 22:10:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E86FFE09D8; Sun, 1 Apr 2012 22:10:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B86CDE09D8 for ; Sun, 1 Apr 2012 22:10:28 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EE5A01B401B for ; Sun, 1 Apr 2012 22:10:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id A556CE5403 for ; Sun, 1 Apr 2012 22:10:26 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: <1333318015.c5f274ccc91d59cddceb63aa9f65c5741e6b678c.idl0r@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: genrdeps/ X-VCS-Repository: proj/qa-scripts X-VCS-Files: genrdeps/run-genrdeps-index.sh X-VCS-Directories: genrdeps/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: c5f274ccc91d59cddceb63aa9f65c5741e6b678c X-VCS-Branch: master Date: Sun, 1 Apr 2012 22:10:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: bce41e8f-6c99-473c-ad18-382eb9136bef X-Archives-Hash: 053e852901c97ac106a15f15803d16a7 commit: c5f274ccc91d59cddceb63aa9f65c5741e6b678c Author: Christian Ruppert gentoo org> AuthorDate: Sun Apr 1 22:06:55 2012 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Sun Apr 1 22:06:55 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/qa-scripts.gi= t;a=3Dcommit;h=3Dc5f274cc Improve run-genrdeps-index.sh This is a slightly modified version of Arfrever's patch (bug 410399). We'll remove the output dirs now only when we're done with the specified = job, this allows us to view the old data while an update is running in the background. Reported-by: Arfrever Frehtes Taifersar Arahesis gmail= .com> X-Gentoo-Bug: 410399 X-Gentoo-Bug-URL: https://bugs.gentoo.org/410399 --- genrdeps/run-genrdeps-index.sh | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/genrdeps/run-genrdeps-index.sh b/genrdeps/run-genrdeps-index= .sh index 09cf7ac..819940d 100755 --- a/genrdeps/run-genrdeps-index.sh +++ b/genrdeps/run-genrdeps-index.sh @@ -1,21 +1,31 @@ #!/bin/sh OUTPUTDIR=3D/var/www/qa-reports.gentoo.org/htdocs/output/genrdeps -[[ -d ${OUTPUTDIR} ]] || mkdir -p ${OUTPUTDIR} +[ -d "${OUTPUTDIR}" ] || mkdir -p ${OUTPUTDIR} +cd ${OUTPUTDIR} =20 -rm -rf ${OUTPUTDIR}/rindex -mkdir ${OUTPUTDIR}/rindex -cd ${OUTPUTDIR}/rindex +mkdir .rindex_new +pushd .rindex_new > /dev/null /var/www/qa-reports.gentoo.org/qa-scripts/genrdeps/genrdeps.py RDEPEND find | cut -c 3- > .rindex +popd > /dev/null +mv rindex rindex_old +mv .rindex_new rindex +rm -rf rindex_old =20 -rm -rf ${OUTPUTDIR}/dindex -mkdir ${OUTPUTDIR}/dindex -cd ${OUTPUTDIR}/dindex +mkdir .dindex_new +pushd .dindex_new > /dev/null /var/www/qa-reports.gentoo.org/qa-scripts/genrdeps/genrdeps.py DEPEND find | cut -c 3- > .dindex +popd > /dev/null +mv dindex dindex_old +mv .dindex_new dindex +rm -rf dindex_old =20 -rm -rf ${OUTPUTDIR}/pindex -mkdir ${OUTPUTDIR}/pindex -cd ${OUTPUTDIR}/pindex +mkdir .pindex_new +pushd .pindex_new > /dev/null /var/www/qa-reports.gentoo.org/qa-scripts/genrdeps/genrdeps.py PDEPEND find | cut -c 3- > .pindex +popd > /dev/null +mv pindex pindex_old +mv .pindex_new pindex +rm -rf pindex_old