]> xenbits.xensource.com Git - people/gdunlap/xsatool/commitdiff
XenRepo: Don't automatically fetch on open to make testing more predictable
authorGeorge Dunlap <george.dunlap@citrix.com>
Thu, 11 May 2017 11:36:10 +0000 (12:36 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 11 May 2017 11:36:10 +0000 (12:36 +0100)
This may need to be revisited at some point.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
xen.go

diff --git a/xen.go b/xen.go
index 13570e543fd32d0832a98bacd25510fd5c4a3239..ce8fa8acf6706618cc83d036eb0383916246193d 100644 (file)
--- a/xen.go
+++ b/xen.go
@@ -131,13 +131,16 @@ func XenRepoOpen(path string, t Tree) (xr *XenRepo, err error) {
        if err != nil {
                return
        }
-       fmt.Printf("Fetching\n")
-       out, err := xr.Fetch()
-       if err != nil {
-               return
-       }
+
+       // FIXME: Decide whether to do this automatically or not
+       // fmt.Printf("Fetching\n")
+       // out, err := xr.Fetch()
+       // if err != nil {
+       //      return
+       // }
+       //fmt.Print(string(out))
+
        xr.XRType = t
-       fmt.Print(string(out))
 
        return
 }