- Limited loop-mounted ISOs to hd, dir, file, nfs, smb, cifs
authorMarius Tomaschewski <mt@suse.de>
Thu, 23 Feb 2006 20:20:13 +0000 (20:20 +0000)
committerMarius Tomaschewski <mt@suse.de>
Thu, 23 Feb 2006 20:20:13 +0000 (20:20 +0000)
zypp/media/MediaISO.cc

index 7d9fa98..fb3f90d 100644 (file)
@@ -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