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: Fri, 5 Jul 2013 16:55:44 +0000 (UTC) [thread overview]
Message-ID: <1373042844.8a0136e502f5a0ece821661b8027d06295b1ed18.dywi@gentoo> (raw)
commit: 8a0136e502f5a0ece821661b8027d06295b1ed18
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Jul 5 16:46:25 2013 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Jul 5 16:47:24 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=8a0136e5
giles/hooks: create metadata cache (NOT TESTED)
As suggested by heroxbd, it would be advantageous to add server-side support
for metadata cache creation. This commit implements it as hook script (using
egencache).
Needs testing and would benefit from a ROVERLAY_ANYTHING_CHANGED variable
(TODO).
---
files/hooks/create-metadata-cache.sh | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/files/hooks/create-metadata-cache.sh b/files/hooks/create-metadata-cache.sh
new file mode 100644
index 0000000..ee3414c
--- /dev/null
+++ b/files/hooks/create-metadata-cache.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# -*- coding: utf-8 -*-
+# roverlay hook that updates the metadata cache
+#
+# should be run before "exporting" the overlay (git-commit-overlay.sh etc.)
+#
+set -u
+
+## load core functions
+. "${FUNCTIONS?}" || exit
+#dont_run_as_root
+
+## load helper functions
+#$lf ...
+
+: ${EGENCACHE:=egencache}
+#autodie qwhich "${EGENCACHE}"
+
+# --portdir, --portdir-overlay?
+# using --portdir-overlay
+# --jobs=?
+# --rsync?
+# --tolerant?
+# --update [<pkg>...]?
+#
+autodie ${EGENCACHE} --ignore-default-opts --update --tolerant \
+ --portdir-overlay="${OVERLAY}" --repo="${OVERLAY_NAME}"
next reply other threads:[~2013-07-05 16:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-05 16:55 André Erdmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-06 21:05 [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=1373042844.8a0136e502f5a0ece821661b8027d06295b1ed18.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