diff options
| -rw-r--r-- | doIncoming.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/doIncoming.go b/doIncoming.go index a6a6cbd..f592cad 100644 --- a/doIncoming.go +++ b/doIncoming.go @@ -27,10 +27,9 @@ func moveOutOfIncoming(fullname string) error { log.Printf("%s move incoming oldname %s newname: %s\n", packageName, fullname, newfilename) log.Fatal("Failed to create destination directory: %v", err) } - log.Printf("%s move incoming oldname %s newname: %s\n", packageName, fullname, newfilename) + // log.Printf("%s move incoming oldname %s newname: %s\n", packageName, fullname, newfilename) if config.Exists(newfilename) { - log.Info("DEBIAN POLICY: YOU CAN NEVER REBUILD THE SAME FILE. APT WILL NOT REINSTALL IT.") - log.Info("AUTO REMOVING", fullname) + log.Info("DEBIAN POLICY: YOU CAN NEVER REBUILD THE SAME FILE. APT WILL NOT REINSTALL IT. AUTO REMOVE: ", fullname) return os.Remove(fullname) } if argv.Force { @@ -53,7 +52,18 @@ func doIncoming(pb *zoopb.Packages) (string, error) { } for _, filename := range files { - log.Info("need to move", filename) + // log.Info("need to move", filename) + moveOutOfIncoming(filename) + } + + globPattern = "/home/mirrors/wit/incoming-devel/*.deb" + files, err = filepath.Glob(globPattern) + if err != nil { + return "glob error", err + } + + for _, filename := range files { + // log.Info("need to move", filename) moveOutOfIncoming(filename) } |
