summaryrefslogtreecommitdiffstats
path: root/repo.postsync.d/q-reinit
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-31 23:35:11 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-31 23:35:11 +0200
commit5670a7670bf07de2d0362f28349a9b455afbf4f3 (patch)
tree268e1ce40ed9aaebfdf0a6183047797ae7795895 /repo.postsync.d/q-reinit
downloadgentoo-5670a7670bf07de2d0362f28349a9b455afbf4f3.tar.gz
gentoo-5670a7670bf07de2d0362f28349a9b455afbf4f3.tar.bz2
gentoo-5670a7670bf07de2d0362f28349a9b455afbf4f3.tar.xz
gentoo-5670a7670bf07de2d0362f28349a9b455afbf4f3.zip
Gentoo 17.1 / Major clean-up
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
+
+: