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

index c1083906965d5fa8f253f3f93e67671edf653f1f..bd1ec1accb94bcc2fc1526263295fe3731170db6 100755 (executable)
@@ -756,6 +756,7 @@ maybe chmod 0755 'portage/postsync.d'
 maybe chmod 0644 'portage/postsync.d/q-reinitialize'
 maybe chmod 0755 'portage/repo.postsync.d'
 maybe chmod 0644 'portage/repo.postsync.d/example'
+maybe chmod 0755 'portage/repo.postsync.d/q-reinit'
 maybe chmod 0755 'portage/repos.conf'
 maybe chmod 0644 'portage/repos.conf/gentoo.conf'
 maybe chmod 0644 'portage/repos.conf/layman.conf'
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
+
+: