[Ovirt-devel] [PATCH appliance] allow for on-filesystem FEDORA_URL

Dan Kenigsberg danken at redhat.com
Thu Oct 30 21:30:09 UTC 2008


---
 gettree.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gettree.sh b/gettree.sh
index 42f1d29..67f6cf9 100755
--- a/gettree.sh
+++ b/gettree.sh
@@ -7,7 +7,10 @@
 
 download() {
     local f=$1
-    wget --progress=dot:mega --continue $1
+    case "$f" in
+        file://*) cp ${f#file://} . ;;
+        *) wget --progress=dot:mega --continue $f ;;
+    esac
     printf "."
 }
 
-- 
1.5.6.5




More information about the ovirt-devel mailing list