@@ -28,7 +28,11 @@ cmd_usage() {
28
28
cat << EOF
29
29
Synopsis:
30
30
31
- env GUIX_SIGS_REPO=<path/to/guix.sigs> ./contrib/guix/guix-verify
31
+ env GUIX_SIGS_REPO=<path/to/guix.sigs> [ SIGNER=<signer> ] ./contrib/guix/guix-verify
32
+
33
+ Example overriding signer's manifest to use as base
34
+
35
+ env GUIX_SIGS_REPO=/home/dongcarl/guix.sigs SIGNER=achow101 ./contrib/guix/guix-verify
32
36
33
37
EOF
34
38
}
@@ -92,6 +96,17 @@ echo "--------------------"
92
96
echo " "
93
97
if (( ${# all_noncodesigned[@]} )) ; then
94
98
compare_noncodesigned=" ${all_noncodesigned[0]} "
99
+ if [[ -n " $SIGNER " ]]; then
100
+ signer_noncodesigned=" $OUTSIGDIR_BASE /$SIGNER /noncodesigned.SHA256SUMS"
101
+ if [[ -f " $signer_noncodesigned " ]]; then
102
+ echo " Using $SIGNER 's manifest as the base to compare against"
103
+ compare_noncodesigned=" $signer_noncodesigned "
104
+ else
105
+ echo " Unable to find $SIGNER 's manifest, using the first one found"
106
+ fi
107
+ else
108
+ echo " No SIGNER provided, using the first manifest found"
109
+ fi
95
110
96
111
for current_manifest in " ${all_noncodesigned[@]} " ; do
97
112
verify " $compare_noncodesigned " " $current_manifest "
@@ -112,6 +127,17 @@ echo "--------------------"
112
127
echo " "
113
128
if (( ${# all_all[@]} )) ; then
114
129
compare_all=" ${all_all[0]} "
130
+ if [[ -n " $SIGNER " ]]; then
131
+ signer_all=" $OUTSIGDIR_BASE /$SIGNER /all.SHA256SUMS"
132
+ if [[ -f " $signer_all " ]]; then
133
+ echo " Using $SIGNER 's manifest as the base to compare against"
134
+ compare_all=" $signer_all "
135
+ else
136
+ echo " Unable to find $SIGNER 's manifest, using the first one found"
137
+ fi
138
+ else
139
+ echo " No SIGNER provided, using the first manifest found"
140
+ fi
115
141
116
142
for current_manifest in " ${all_all[@]} " ; do
117
143
verify " $compare_all " " $current_manifest "
0 commit comments