- Fixed to use cleaned up attachPoint instead of the
authorMarius Tomaschewski <mt@suse.de>
Thu, 2 Mar 2006 16:13:09 +0000 (16:13 +0000)
committerMarius Tomaschewski <mt@suse.de>
Thu, 2 Mar 2006 16:13:09 +0000 (16:13 +0000)
  url path in mediaSource.

zypp/media/MediaDIR.cc

index 10bc0bd4c87cc354ce9112dcdc539d17789849fb..abbb18920577174549f9eb65e638c33372fb9855 100644 (file)
@@ -41,7 +41,7 @@ namespace zypp {
     MediaDIR::MediaDIR( const Url &      url_r,
                        const Pathname & /*attach_point_hint_r*/ )
         : MediaHandler( url_r, url_r.getPathName(),
-                   "/", // urlpath at attachpoint
+                   "/",    // urlpath below attachpoint
                    false ) // does_download
     {
        MIL << "MediaDIR::MediaDIR(" << url_r << ")" << endl;
@@ -59,7 +59,7 @@ namespace zypp {
     {
       if(next)
        ZYPP_THROW(MediaNotSupportedException(url()));
-      MediaSourceRef media(new MediaSource("dir", _url.getPathName()));
+      MediaSourceRef media(new MediaSource("dir", attachPoint().asString()));
       setMediaSource(media);
     }