public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/
@ 2013-06-21 18:41 André Erdmann
  2013-06-22 15:24 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
  0 siblings, 1 reply; 8+ messages in thread
From: André Erdmann @ 2013-06-21 18:41 UTC (permalink / raw
  To: gentoo-commits

commit:     5234fac2c9dfd6f8620db345becf16258e87da4d
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Jun 21 18:40:42 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Jun 21 18:40:42 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=5234fac2

git-commit-overlay.sh: remove TODO note

remove commit message TODO note as it's implemented now

---
 files/hooks/git-commit-overlay.sh | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/files/hooks/git-commit-overlay.sh b/files/hooks/git-commit-overlay.sh
index c33be9e..ebac032 100644
--- a/files/hooks/git-commit-overlay.sh
+++ b/files/hooks/git-commit-overlay.sh
@@ -11,13 +11,6 @@
 #
 set -u
 
-# TODO:
-#
-# create meaningful commit messages
-# * include package list in the message body
-# -> git status --porcelain
-# -> 78/80 chars per line
-
 ## load core functions
 . "${FUNCTIONS?}" || exit
 #dont_run_as_root


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] proj/R_overlay:master commit in: files/hooks/
@ 2013-06-22 15:24 André Erdmann
  2013-06-21 18:33 ` [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
  0 siblings, 1 reply; 8+ messages in thread
From: André Erdmann @ 2013-06-22 15:24 UTC (permalink / raw
  To: gentoo-commits

commit:     c0d8dede6893a998f7ec5d06eb24d30f02e931b1
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Jun 21 18:33:23 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Jun 21 18:33:23 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=c0d8dede

git-commit-overlay.sh: drop --author arg

---
 files/hooks/git-commit-overlay.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/files/hooks/git-commit-overlay.sh b/files/hooks/git-commit-overlay.sh
index 43060ab..c33be9e 100644
--- a/files/hooks/git-commit-overlay.sh
+++ b/files/hooks/git-commit-overlay.sh
@@ -28,7 +28,7 @@ $lf git
 
 ## "config" for this script
 # FIXME/TODO: remove config here?
-GIT_COMMIT_AUTHOR='undef undef undef@undef.org'
+##GIT_COMMIT_AUTHOR='undef undef undef@undef.org'
 GIT_COMMIT_MESSAGE='roverlay updates'
 
 GIT_COMMIT_MAX_LINE_WIDTH=79
@@ -84,7 +84,7 @@ git_commit() {
    # commit
    if run_command_logged \
       ${GIT} commit --quiet --no-edit \
-         --file "${COMMIT_MSG_FILE}" --author="${GIT_COMMIT_AUTHOR}"
+         --file "${COMMIT_MSG_FILE}" ## --author="${GIT_COMMIT_AUTHOR}"
    then
       rm "${COMMIT_MSG_FILE-}" && COMMIT_MSG_FILE=
       trap - INT TERM EXIT


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] proj/R_overlay:master commit in: files/hooks/
@ 2013-06-22 15:24 André Erdmann
  2013-06-22 15:14 ` [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
  0 siblings, 1 reply; 8+ messages in thread
From: André Erdmann @ 2013-06-22 15:24 UTC (permalink / raw
  To: gentoo-commits

commit:     f4f7cc8c19defd199b4282fefc3db09d96c92e94
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Sat Jun 22 10:06:15 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Sat Jun 22 10:06:15 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=f4f7cc8c

files/hooks/mux.sh: create temporary directory

---
 files/hooks/mux.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/files/hooks/mux.sh b/files/hooks/mux.sh
index c114db5..298998e 100755
--- a/files/hooks/mux.sh
+++ b/files/hooks/mux.sh
@@ -8,6 +8,9 @@ set -u
 . "${FUNCTIONS?}" || exit
 #dont_run_as_root
 
+# tmpdir should exist (assuming that hooks don't remove this dir)
+autodie dodir "${T}"
+
 for hookfile in \
    ${FILESDIR}/hooks/${ROVERLAY_PHASE}/?*.sh \
    ${FILESDIR}/hooks/?*.${ROVERLAY_PHASE}
@@ -26,3 +29,5 @@ do
       trap - INT TERM EXIT
    fi
 done
+
+rmdir "${T}" 2>>${DEVNULL} || true


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/
@ 2013-07-05 16:55 André Erdmann
  0 siblings, 0 replies; 8+ messages in thread
From: André Erdmann @ 2013-07-05 16:55 UTC (permalink / raw
  To: gentoo-commits

commit:     86507ad1812204e22b71a90f2966c34581098ce3
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Jul  5 11:21:27 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Jul  5 11:21:27 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=86507ad1

files/hooks/mux.sh: set LC_COLLATE, LC_CTYPE

---
 files/hooks/mux.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/files/hooks/mux.sh b/files/hooks/mux.sh
index 298998e..40833c6 100755
--- a/files/hooks/mux.sh
+++ b/files/hooks/mux.sh
@@ -4,6 +4,12 @@
 #
 set -u
 
+LC_COLLATE=C
+export LC_COLLATE
+
+LC_CTYPE=C
+export LC_CTYPE
+
 ## load core functions
 . "${FUNCTIONS?}" || exit
 #dont_run_as_root


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/
@ 2013-07-05 16:55 André Erdmann
  0 siblings, 0 replies; 8+ messages in thread
From: André Erdmann @ 2013-07-05 16:55 UTC (permalink / raw
  To: gentoo-commits

commit:     5039d0929d5dbbc802d22908b32935bebaed0e08
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Jul  5 16:45:58 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Jul  5 16:45:58 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=5039d092

files/hooks/skel.sh: template for hook scripts

---
 files/hooks/skel.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/files/hooks/skel.sh b/files/hooks/skel.sh
new file mode 100644
index 0000000..6bb4725
--- /dev/null
+++ b/files/hooks/skel.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+# -*- coding: utf-8 -*-
+# <short description>
+# template for roverlay hooks
+#
+# <more informative description about what this script does>
+#
+set -u
+
+## load core functions
+. "${FUNCTIONS?}" || exit
+#dont_run_as_root
+
+## load helper functions
+#$lf ...
+
+# hook body starts here
+true


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/
@ 2013-07-05 16:55 André Erdmann
  0 siblings, 0 replies; 8+ messages in thread
From: André Erdmann @ 2013-07-05 16:55 UTC (permalink / raw
  To: gentoo-commits

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}"


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/
@ 2013-07-06 21:05 André Erdmann
  0 siblings, 0 replies; 8+ messages in thread
From: André Erdmann @ 2013-07-06 21:05 UTC (permalink / raw
  To: gentoo-commits

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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-06 21:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21 18:41 [gentoo-commits] proj/R_overlay:gsoc13/next commit in: files/hooks/ André Erdmann
2013-06-22 15:24 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
  -- strict thread matches above, loose matches on Subject: below --
2013-06-22 15:24 André Erdmann
2013-06-21 18:33 ` [gentoo-commits] proj/R_overlay:gsoc13/next " 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-07-05 16:55 André Erdmann
2013-07-05 16:55 André Erdmann
2013-07-05 16:55 André Erdmann
2013-07-06 21:05 André Erdmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox