diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-01-28 01:40:35 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-01-28 01:40:35 (GMT) |
commit | fe0e889e434816650f85fdf0b57f40b1d1211dc3 (patch) | |
tree | bcfdc60930de9de6c80cdcba5e8b5a8b2720ccfd /src | |
parent | 5fb5067d753fc2b0b95d1734c7fbf72f619cdc71 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/pool-import/main.go | 9 |
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 |