]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/configuration.cc
Store tags in the cache (they are very useful :/).
[apt.git] / apt-pkg / contrib / configuration.cc
index 3cb7fde06507740ea8c8886ddd12444eb9cf5f76..9007bf9ec36a2f96139417ea5ceb4404801455cc 100644 (file)
@@ -225,15 +225,7 @@ string Configuration::FindFile(const char *Name,const char *Default) const
       }
       result.append(val);
    }
-
-   // do some normalisation by removing // and /./ from the path
-   size_t found = string::npos;
-   while ((found = result.find("/./")) != string::npos)
-      result.replace(found, 3, "/");
-   while ((found = result.find("//")) != string::npos)
-      result.replace(found, 2, "/");
-
-   return result;
+   return flNormalize(result);
 }
                                                                        /*}}}*/
 // Configuration::FindDir - Find a directory name                      /*{{{*/