When processing a cvs SRC_URI to a file:// mirror, the user and host information
will break the mirror processing. This patch addresses it by only constructing
valid urls.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
     if not type or not path:
         raise MissingParameterError("Type or path url components missing when encoding %s" % decoded)
     url = '%s://' % type
-    if user:
+    if user and type != "file":
         url += "%s" % user
         if pswd:
             url += ":%s" % pswd
         url += "@"
-    if host:
+    if host and type != "file":
         url += "%s" % host
     url += "%s" % path
     if p: