瀏覽代碼

Also generate "InRelease" files for newer APT clients

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Tianon Gravi 9 年之前
父節點
當前提交
b82fc524a7
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      hack/make/sign-repos

+ 7 - 0
hack/make/sign-repos

@@ -32,6 +32,13 @@ sign_packages(){
 					--batch --yes \
 					--output "$F.gpg" "$F"
 			fi
+			inRelease="$(dirname "$F")/InRelease"
+			if test "$F" -nt "$inRelease" ; then
+				gpg -u "$GPG_KEYID" --passphrase "$GPG_PASSPHRASE" \
+					--clearsign \
+					--batch --yes \
+					--output "$inRelease" "$F"
+			fi
 		done
 	fi