remove Printf output and do a real removal of the repository in the datastore

This commit is contained in:
Ulrich Schreiner
2015-02-04 15:13:23 +01:00
parent 0ed7ae7e3f
commit 347aa24785
2 changed files with 5 additions and 1 deletions

View File

@@ -81,6 +81,11 @@ func DelRepo(c web.C, w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
if err := datastore.DelRepo(ctx, repo); err != nil {
w.WriteHeader(http.StatusInternalServerError)
return
}
}
// disable everything