gocheese.go | 4 +++- pyshop2packages.sh | 1 + diff --git a/gocheese.go b/gocheese.go index 08bc2cad3592d1d7920230609ee1f5624fcc50414fe1ddea3b256fa2b9bbf6eb..a419065075ea37576ad326e75ca78939875460fedfdf1141a63ca7a17c77b0d9 100644 --- a/gocheese.go +++ b/gocheese.go @@ -701,7 +701,9 @@ WriteTimeout: time.Minute, } http.HandleFunc(*norefreshURLPath, handler) http.HandleFunc(*refreshURLPath, handler) - http.HandleFunc(*gpgUpdateURLPath, handler) + if *gpgUpdateURLPath != "" { + http.HandleFunc(*gpgUpdateURLPath, handler) + } needsRefreshPasswd := make(chan os.Signal, 0) needsShutdown := make(chan os.Signal, 0) diff --git a/pyshop2packages.sh b/pyshop2packages.sh index 30cd3a93ef8cc71f6cc156bf131312ef720e876ce32c4f61451e52411c980a6d..ead77124d3218a18fdb1fbca48e053644d6b63210e17e7f016a94932b010dbe4 100755 --- a/pyshop2packages.sh +++ b/pyshop2packages.sh @@ -51,6 +51,7 @@ # Force all metainformation update from upstream ######################################################################## cd packages for pkg in * ; do + # Assume gocheese -gpgupdate /gpgupdate/ curl http://localhost:8080/gpgupdate/$pkg/ > /dev/null done