public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Christian Ruppert" <idl0r@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/qa-scripts:master commit in: genrdeps/
Date: Sun,  1 Apr 2012 22:10:26 +0000 (UTC)	[thread overview]
Message-ID: <1333318015.c5f274ccc91d59cddceb63aa9f65c5741e6b678c.idl0r@gentoo> (raw)

commit:     c5f274ccc91d59cddceb63aa9f65c5741e6b678c
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  1 22:06:55 2012 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Sun Apr  1 22:06:55 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=c5f274cc

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 <arfrever.fta <AT> 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=/var/www/qa-reports.gentoo.org/htdocs/output/genrdeps
-[[ -d ${OUTPUTDIR} ]] || mkdir -p ${OUTPUTDIR}
+[ -d "${OUTPUTDIR}" ] || mkdir -p ${OUTPUTDIR}
+cd ${OUTPUTDIR}
 
-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
 
-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
 
-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



             reply	other threads:[~2012-04-01 22:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-01 22:10 Christian Ruppert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-02-24  9:11 [gentoo-commits] proj/qa-scripts:master commit in: genrdeps/ Michał Górny
2020-02-22  5:54 Michał Górny
2014-08-28 19:16 Jorge Manuel B. S. Vicetto
2011-03-22  5:17 Jeremy Olexa
2011-03-22  4:10 Jeremy Olexa

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=1333318015.c5f274ccc91d59cddceb63aa9f65c5741e6b678c.idl0r@gentoo \
    --to=idl0r@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox