Change the package index Info methods to allow apt-cache policy to be
[ntk/apt.git] / apt-pkg / contrib / strutl.cc
index 2913fbf..8e88209 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;
+}
+                                                                       /*}}}*/