]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/strutl.cc
Change the package index Info methods to allow apt-cache policy to be
[apt.git] / apt-pkg / contrib / strutl.cc
index 2913fbf44e42f74bf8104cb5b97051816c0940d7..8e88209491c7c9714183e23d7a8e344541e90332 100644 (file)
@@ -1323,3 +1323,15 @@ string URI::SiteOnly(const string &URI)
    return U;
 }
                                                                        /*}}}*/
+// URI::NoUserPassword - Return the schema, site and path for the URI  /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+string URI::NoUserPassword(const string &URI)
+{
+   ::URI U(URI);
+   U.User.clear();
+   U.Password.clear();
+   U.Port = 0;
+   return U;
+}
+                                                                       /*}}}*/