From 1feee6d194f417cd3a33bb4b79650010c3263921 Mon Sep 17 00:00:00 2001 From: Stanislav Visnovsky Date: Mon, 13 Feb 2006 07:45:44 +0000 Subject: [PATCH] move LanguageCode.cc up the list to compile it ASAP, it takes too long --- zypp/Makefile.am | 2 +- zypp/source/MediaSet.cc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/zypp/Makefile.am b/zypp/Makefile.am index 4c2f36b..d91ea1d 100644 --- a/zypp/Makefile.am +++ b/zypp/Makefile.am @@ -85,6 +85,7 @@ lib_LTLIBRARIES = lib@PACKAGE@.la ## ################################################## lib@PACKAGE@_la_SOURCES = \ + LanguageCode.cc \ Arch.cc \ ByteCount.cc \ Capability.cc \ @@ -96,7 +97,6 @@ lib@PACKAGE@_la_SOURCES = \ Dep.cc \ Dependencies.cc \ Edition.cc \ - LanguageCode.cc \ Locale.cc \ NVR.cc \ NVRA.cc \ diff --git a/zypp/source/MediaSet.cc b/zypp/source/MediaSet.cc index 113a410..9a9b4dc 100644 --- a/zypp/source/MediaSet.cc +++ b/zypp/source/MediaSet.cc @@ -79,6 +79,9 @@ namespace zypp std::string scheme = url_r.getScheme(); if (scheme == "cd" || scheme == "dvd") return url_r; + + DBG << "Rewriting url " << url_r << endl; + std::string pathname = url_r.getPathName(); boost::regex e("^(.*)[0-9]+$"); boost::smatch what; @@ -88,6 +91,10 @@ namespace zypp pathname = base + str::numstring(medianr); Url url = url_r; url.setPathName (pathname); + + DBG << "Url rewrite result: " << url << endl; + + return url; } return url_r; } -- 2.7.4