summaryrefslogtreecommitdiff
path: root/src/pool-import/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pool-import/main.go')
-rw-r--r--src/pool-import/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pool-import/main.go b/src/pool-import/main.go
index 025c76f..629009a 100644
--- a/src/pool-import/main.go
+++ b/src/pool-import/main.go
@@ -33,6 +33,7 @@ import (
const (
RD_CONF = "/etc/rd.conf"
+ RD_USER = "pool-import"
)
func Done(res rhimport.Result, userdata interface{}) bool {
@@ -58,6 +59,14 @@ func main() {
}
defer db.Cleanup()
+ // var password string
+ // if password, err = db.GetInterface().GetPassword(RD_USER, false); err != nil {
+ // log.Fatalf("Error fetching password for user '%s': %v", RD_USER, err)
+ // }
+ // if err := rhimport.RemoveCart(cart, "https://import.helsinki.at/rd-bin/rdxport.cgi", RD_USER, password); err != nil {
+ // log.Fatalf("Error deleting cart %d: %v", cart.Number, err)
+ // }
+
stdlog := log.New(os.Stderr, "[std] ", log.LstdFlags)
//dbglog := log.New(os.Stderr, "[dbg] ", log.LstdFlags)
var dbglog *log.Logger