From b65a8464d7a59aa858e6d43285e18842ebfd63ba Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 17 Sep 2017 19:15:41 -0400 Subject: [PATCH] Fix refreshing package files after upload --- src/meow.tf/deb-simple/http.go | 2 ++ src/meow.tf/deb-simple/server.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/meow.tf/deb-simple/http.go b/src/meow.tf/deb-simple/http.go index 813a2c0..9f4ba53 100644 --- a/src/meow.tf/deb-simple/http.go +++ b/src/meow.tf/deb-simple/http.go @@ -150,6 +150,8 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) { archType = queryArchType } + modifiedArches[archType] = true + // Get current packages packages, exists := distro.Architectures[archType] diff --git a/src/meow.tf/deb-simple/server.go b/src/meow.tf/deb-simple/server.go index f543b8e..dd0b81a 100644 --- a/src/meow.tf/deb-simple/server.go +++ b/src/meow.tf/deb-simple/server.go @@ -16,7 +16,7 @@ import ( "io" ) -var VERSION string = "1.3.5" +var VERSION string = "1.3.6" func packageName(name string) string { if index := strings.Index(name, "_"); index != -1 { @@ -34,7 +34,7 @@ type DeleteObj struct { var ( mutex sync.RWMutex configFile = flag.String("c", "conf.ini", "config file location") - flagShowVersion = flag.Bool("version", false, "Show dnsconfig version") + flagShowVersion = flag.Bool("version", false, "Show deb-simple version") conf = Conf{} pgpEntity *openpgp.Entity )