From: Frank Brehm Date: Mon, 23 Oct 2017 08:32:55 +0000 (+0200) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=9572a2ce4be895f437d3132828cb26eb237abf39;p=config%2Fberta%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/.etckeeper b/.etckeeper index c108390..bd1ec1a 100755 --- a/.etckeeper +++ b/.etckeeper @@ -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 index 0000000..0833c66 --- /dev/null +++ b/portage/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 + +: