summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPatch.go')
-rw-r--r--doPatch.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/doPatch.go b/doPatch.go
index b6cf0dd..cbf1f31 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -36,19 +36,20 @@ func doPatch() error {
log.Info("Get Patchsets Failed", err)
return err
}
+ return nil
+ }
+ if argv.Patch.Check != nil {
old := findExpired()
// old.PrintTable()
for p := range old.IterAll() {
log.Info("patch", p.Filename, p.Namespace)
}
- me.forge.SubmitPatchesNew(old, "oldpatchset")
- log.Infof("submitted %d old patches\n", old.Len())
- return nil
- }
-
- if argv.Patch.Check != nil {
- log.Info("remove this option")
+ newpb, err := old.HttpPostVerbose(myServer(), "check")
+ if err != nil {
+ return err
+ }
+ newpb.PrintTable()
return nil
}