From 9572a2ce4be895f437d3132828cb26eb237abf39 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 23 Oct 2017 10:32:55 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .etckeeper | 1 + portage/repo.postsync.d/q-reinit | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100755 portage/repo.postsync.d/q-reinit 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 + +: -- 2.39.5