summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/cmd/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py
index 11c684de1a..61a65c1327 100644
--- a/lib/spack/spack/cmd/create.py
+++ b/lib/spack/spack/cmd/create.py
@@ -829,7 +829,7 @@ def get_versions(args, name):
valid_url = True
try:
parsed = urllib.parse.urlparse(args.url)
- if not parsed.scheme or parsed.scheme != "file":
+ if not parsed.scheme or parsed.scheme == "file":
valid_url = False # No point in spidering these
except (ValueError, TypeError):
valid_url = False