Merge pull request #504 from Fugiman/only_skip_directories

Only skip directories when rewriting godeps
diff --git a/README.md b/README.md
index fadeff8..39ef0e8 100644
--- a/README.md
+++ b/README.md
@@ -76,7 +76,13 @@
 
 ## Install
 
-On Mac OS X you can install the latest release via [Homebrew](https://github.com/Homebrew/homebrew):
+The easiest way to install the latest release on Mac or Linux is with the following script:
+
+```
+curl https://glide.sh/get | sh
+```
+
+On Mac OS X you can also install the latest release via [Homebrew](https://github.com/Homebrew/homebrew):
 
 ```
 $ brew install glide
diff --git a/repo/installer.go b/repo/installer.go
index 420ac27..13d3fb0 100644
--- a/repo/installer.go
+++ b/repo/installer.go
@@ -192,6 +192,9 @@
 	var tdeps cfg.Dependencies
 	for _, v := range imps {
 		n := res.Stripv(v)
+		if conf.HasIgnore(n) {
+			continue
+		}
 		rt, sub := util.NormalizeName(n)
 		if sub == "" {
 			sub = "."
@@ -210,6 +213,9 @@
 	if i.ResolveTest {
 		for _, v := range timps {
 			n := res.Stripv(v)
+			if conf.HasIgnore(n) {
+				continue
+			}
 			rt, sub := util.NormalizeName(n)
 			if sub == "" {
 				sub = "."