]> Frank Brehm's Git Trees - config/bruni/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Thu, 12 Oct 2017 20:26:10 +0000 (22:26 +0200)
committerFrank Brehm <frank@brehm-online.com>
Thu, 12 Oct 2017 20:26:10 +0000 (22:26 +0200)
portage/repo.postsync.d/q-reinit [new file with mode: 0755]

diff --git a/portage/repo.postsync.d/q-reinit b/portage/repo.postsync.d/q-reinit
new file mode 100755 (executable)
index 0000000..0833c66
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+repository_name=$1
+repository_path=$3
+
+if [ -n "${repository_name}" ]; then
+       q ${PORTAGE_QUIET:+-q} --reinitialize="${repository_path}"
+fi
+
+: