package action

import (
	"github.com/Masterminds/glide/godep"
	"github.com/Masterminds/glide/msg"
)

// ImportGodep imports a Godep file.
func ImportGodep(dest string) {
	base := "."
	config := EnsureConfig()
	if !godep.Has(base) {
		msg.Die("No Godep data found.")
	}
	deps, err := godep.Parse(base)
	if err != nil {
		msg.Die("Failed to extract Godeps file: %s", err)
	}
	appendImports(deps, config)
	writeConfigToFileOrStdout(config, dest)
}

package action

import (
	"github.com/Masterminds/glide/godep"
	"github.com/Masterminds/glide/msg"
)

// ImportGodep imports a GPM file.
func ImportGodep(dest string) {
	base := "."
	config := EnsureConfig()
	if !godep.Has(base) {
		msg.Die("No Godep data found.")
	}
	deps, err := godep.Parse(base)
	if err != nil {
		msg.Die("Failed to extract Godeps file: %s", err)
	}
	appendImports(deps, config)
	writeConfigToFileOrStdout(config, dest)
}

--- 
+++ 
@@ -5,7 +5,7 @@
 	"github.com/Masterminds/glide/msg"
 )
 
-// ImportGodep imports a GPM file.
+// ImportGodep imports a Godep file.
 func ImportGodep(dest string) {
 	base := "."
 	config := EnsureConfig()
Fix a typo in comment
