[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH] echo to stderr in mg-debian-installer-update



Otherwise the script would 'return' an array of strings which results,
when called from standalone-reset, in something like this:

+ ln -s 
http://ftp.debian.org/debian//dists/wheezy/main/installer-amd64/current/images/netboot//debian-installer/amd64/initrd.gz
 '=>' initrd.gz.new 
http://ftp.debian.org/debian//dists/wheezy/main/installer-amd64/current/images/netboot//debian-installer/amd64/linux
 '=>' linux.new 
http://ftp.debian.org/debian//dists/wheezy/main/installer-amd64/current/images/netboot//xen/vmlinuz
 '=>' vmlinuz-xen.new 
http://ftp.debian.org/debian//dists/wheezy/main/installer-amd64/current/images/netboot//xen/initrd.gz
 '=>' initrd.gz-xen.new s=debian-installer/amd64/initrd.gz d=initrd.gz 
s=debian-installer/amd64/linux d=linux s=xen/vmlinuz d=vmlinuz-xen 
s=xen/initrd.gz d=initrd.gz-xen 2014-06-13-wheezy 
/usr/groups/netboot//dariof/osstest/debian-installer/amd64/current-wheezy
ln: target 
`/usr/groups/netboot//dariof/osstest/debian-installer/amd64/current-wheezy' is 
not a directory

This was introduced in commit 20e98de815870b879157bb79559a70a0c058259a
(mg-debian-installer-update: grab Xen PV domU capable images too).

Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
---
diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index d6b688e..b964f95 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -62,7 +62,7 @@ cd $dst
 for f in $files; do
         echo >&2 "fetching $f"
         s=${f/:*} ; d=${f/*:}
-        echo "$src/$s => $d.new"
+        echo >&2 "$src/$s => $d.new"
         curl -s $src/$s >$d.new
 done
 

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.