]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/strutl.cc
test/test-indexes.sh: Stop hardcoding archive gpg key ID, get it from first failed...
[apt.git] / apt-pkg / contrib / strutl.cc
index 3bbaf5f3045dc6d3464325dbe75179ab8c34b093..1b9922a31528d18ec5f0ccf6b45c8a1462e6b118 100644 (file)
@@ -1341,3 +1341,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;
+}
+                                                                       /*}}}*/