From 44eeecddab890848e32ed2406bcb2c1803380229 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Tue, 2 May 2006 20:26:44 +0000 Subject: [PATCH] - Fixed to avoid check if the attachpoint is an absolute dir for the "dir" scheme as well (not only in "file", rev 3012) --- zypp/media/MediaHandler.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zypp/media/MediaHandler.cc b/zypp/media/MediaHandler.cc index 8b420c9..ce006e7 100644 --- a/zypp/media/MediaHandler.cc +++ b/zypp/media/MediaHandler.cc @@ -63,9 +63,16 @@ MediaHandler::MediaHandler ( const Url & url_r, /////////////////////////////////////////////////////////////////// PathInfo adir( attach_point_r ); - // FIXME: verify if attach_point_r isn't a mountpoint of other device + // + // The verify if attach_point_r isn't a mountpoint of another + // device is done in the particular media handler (if needed). + // + // We just verify, if attach_point_r is a directory and for + // schemes other than "file" and "dir", if it is absolute. + // if ( !adir.isDir() || (_url.getScheme() != "file" + && _url.getScheme() != "dir" && !attach_point_r.absolute()) ) { ERR << "Provided attach point is not a absolute directory: " -- 2.7.4