Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/rsync-generation/
Date: Fri, 07 Jun 2019 05:44:09
Message-Id: 1559886100.9020aa9bd3b6dc20703eec64817b8978197120b4.grobian@gentoo
1 commit: 9020aa9bd3b6dc20703eec64817b8978197120b4
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 7 05:41:40 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 7 05:41:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=9020aa9b
7
8 scripts/rsync-generation/update-rsync-master: hashgen -> qmanifest
9
10 Now hashgen is integrated in portage-utils as qmanifest, switch to using
11 it.
12
13 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
14
15 scripts/rsync-generation/update-rsync-master.sh | 17 +++--------------
16 1 file changed, 3 insertions(+), 14 deletions(-)
17
18 diff --git a/scripts/rsync-generation/update-rsync-master.sh b/scripts/rsync-generation/update-rsync-master.sh
19 index d5afe16c2e..a8da6c894b 100755
20 --- a/scripts/rsync-generation/update-rsync-master.sh
21 +++ b/scripts/rsync-generation/update-rsync-master.sh
22 @@ -274,23 +274,12 @@ echo "($(date +"%F %R")) signing Manifest"
23 sed -i -e '/^thin-manifests/s/true/false/' "${RSYNCDIR}"/metadata/layout.conf
24
25 # generate Thick Manifests
26 -${BASE_PATH}/hashgen "${RSYNCDIR}"
27 -
28 # Signing is done with our snapshot signing key, and only on the top
29 # level Manifest, for it covers indirectly the entire tree
30 -
31 # remember, HOME is set to misc/ so .gnupg keychain lives there
32 -gpg --batch --no-tty --passphrase-fd 0 --default-key C6317B3C \
33 - --pinentry-mode loopback \
34 - --sign --clearsign --digest-algo SHA512 \
35 - --yes "${RSYNCDIR}"/Manifest \
36 - < "${BASE_PATH}"/autosigner.pwd 2>&1
37 -if [[ -f ${RSYNCDIR}/Manifest.asc ]] ; then
38 - touch -r "${RSYNCDIR}"/Manifest "${RSYNCDIR}"/Manifest.asc
39 - mv "${RSYNCDIR}"/Manifest{.asc,}
40 -else
41 - echo "signing failed!" >> /dev/stderr
42 -fi
43 +cat "${BASE_PATH}"/autosigner.pwd | \
44 + qmanifest -g -p -s "0xC6317B3C" "${RSYNCDIR}" || \
45 + echo "Manifest generation and/or signing failed!" >> /dev/stderr
46
47 echo "($(date +"%F %R")) Manifest signed"