optimise sign

This commit is contained in:
ferrreo 2023-09-05 12:40:45 +01:00
parent 9a5bd83251
commit 0aedcacea7
3 changed files with 2 additions and 7 deletions

BIN
ppp

Binary file not shown.

View File

@ -1,5 +0,0 @@
#! /bin/bash
set -e
dpkg-sig $@ &
wait $last_pid

View File

@ -170,7 +170,7 @@ func signFiles(path string) {
filePath := ""
for _, file := range files {
totalCount--
if count < 100 && totalCount > 0 {
if count < 10 && totalCount > 0 {
count++
filePath = filePath + " " + path + file
} else {
@ -188,7 +188,7 @@ func signFiles(path string) {
func sign(ch chan bool, path string) {
if strings.HasSuffix(path, ".deb") {
fmt.Printf("Signing %s \n", path)
cmd := exec.Command("../sign.sh", "--sign", "builder", path)
cmd := exec.Command("dpkg-sig", "--sign", "builder", path)
err := cmd.Run()
if err != nil {
panic(err)