summaryrefslogtreecommitdiffstats
path: root/repo.postsync.d/q-reinit
diff options
context:
space:
mode:
Diffstat (limited to 'repo.postsync.d/q-reinit')
-rwxr-xr-xrepo.postsync.d/q-reinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/repo.postsync.d/q-reinit b/repo.postsync.d/q-reinit
new file mode 100755
index 0000000..0833c66
--- /dev/null
+++ b/repo.postsync.d/q-reinit
@@ -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
+
+: