From 832c0cc4bf71d2bdb92fa8c5433152555b59f8c5 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Thu, 23 Feb 2006 20:20:13 +0000 Subject: [PATCH] - Limited loop-mounted ISOs to hd, dir, file, nfs, smb, cifs --- zypp/media/MediaISO.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zypp/media/MediaISO.cc b/zypp/media/MediaISO.cc index 7d9fa98..fb3f90d 100644 --- a/zypp/media/MediaISO.cc +++ b/zypp/media/MediaISO.cc @@ -77,17 +77,17 @@ namespace zypp << src.asString() << std::endl; ZYPP_THROW(MediaUnsupportedUrlSchemeException(src)); } -#if 0 - /* - ** FIXME: should we really support this? - */ +#if 1 else - if( src.getScheme() == "ftp" || - src.getScheme() == "http" || - src.getScheme() == "https") + if( !(src.getScheme() == "hd" || + src.getScheme() == "dir" || + src.getScheme() == "file" || + src.getScheme() == "nfs" || + src.getScheme() == "smb" || + src.getScheme() == "cifs")) { ERR << "ISO filename source media url scheme is not supported: " - << src.asString() << endl; + << src.asString() << std::endl; ZYPP_THROW(MediaUnsupportedUrlSchemeException(src)); } #endif -- 2.7.4