public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/
Date: Sat,  6 Jul 2013 21:05:33 +0000 (UTC)	[thread overview]
Message-ID: <1373140576.535e2eb10d9de3c37124daa535d4a6f47c766866.dywi@gentoo> (raw)

commit:     535e2eb10d9de3c37124daa535d4a6f47c766866
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Sat Jul  6 19:56:16 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Sat Jul  6 19:56:16 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=535e2eb1

files/hooks/create-metadata-cache.sh: --cache-dir

The roverlay process may not have sufficient permissions to access
/var/cache/edb/dep.
Passing --cache-dir=<TMPDIR location> to egencache should fix that.

---
 files/hooks/create-metadata-cache.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/files/hooks/create-metadata-cache.sh b/files/hooks/create-metadata-cache.sh
index ee3414c..dbe7286 100644
--- a/files/hooks/create-metadata-cache.sh
+++ b/files/hooks/create-metadata-cache.sh
@@ -16,6 +16,18 @@ set -u
 : ${EGENCACHE:=egencache}
 #autodie qwhich "${EGENCACHE}"
 
+# void cleanup()
+#
+cleanup() {
+   trap - INT TERM EXIT
+   if [ -d "${MY_CACHE_DIR-}" ]; then
+      rm -rf "${MY_CACHE_DIR}"
+   fi
+}
+MY_CACHE_DIR="${T}/egencache.$$"
+autodie dodir "${MY_CACHE_DIR}"
+trap cleanup INT TERM EXIT
+
 # --portdir, --portdir-overlay?
 #  using --portdir-overlay
 # --jobs=?
@@ -24,4 +36,6 @@ set -u
 # --update [<pkg>...]?
 #
 autodie ${EGENCACHE} --ignore-default-opts --update --tolerant \
+   --cache-dir="${MY_CACHE_DIR}" \
    --portdir-overlay="${OVERLAY}" --repo="${OVERLAY_NAME}"
+autodie cleanup


             reply	other threads:[~2013-07-06 21:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-06 21:05 André Erdmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-07-05 16:55 [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/ André Erdmann
2013-07-05 16:55 André Erdmann
2013-07-05 16:55 André Erdmann
2013-06-22 15:24 [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-06-22 15:14 ` [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-06-22 15:24 [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-06-21 18:33 ` [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-06-21 18:41 André Erdmann

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=1373140576.535e2eb10d9de3c37124daa535d4a6f47c766866.dywi@gentoo \
    --to=dywi@mailerd.de \
    --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