xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH OSSTEST] standalone-reset: fix check for existing d-i and creation of symlink
@ 2013-11-01  9:34 Ian Campbell
  2013-11-01 15:52 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2013-11-01  9:34 UTC (permalink / raw)
  To: ian.jackson; +Cc: Ian Campbell, xen-devel

We need to check for "$diver-$suite" not just "$diver" now

Also when creating the current symlink only do so if
mg-debian-installer-update did something, since it will now silently ignore
unavailable combinations (e.g. armhf on Squeeze)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 standalone-reset |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/standalone-reset b/standalone-reset
index 039dfea..8be7e86 100755
--- a/standalone-reset
+++ b/standalone-reset
@@ -94,14 +94,16 @@ else
 
 	if [ "x$diver" = xcurrent ]; then
 		for arch in i386 amd64 armhf; do
-			if test -d "$tftp/$dibase/$arch/$diver"
+			if test -d "$tftp/$dibase/$arch/$diver-$suite"
 				then continue; fi
 			mkdir -p "$tftp/$dibase/$arch"
 			echo "** need to generate d-i with firmware for $arch"
 			div=`./mg-debian-installer-update \
 					$suite $arch $firmware`
-			rm -f "$tftp/$dibase/$arch/current-$suite"
-			ln -s $div "$tftp/$dibase/$arch/current-$suite"
+			if [ -n "$div" ] ; then
+			    rm -f "$tftp/$dibase/$arch/current-$suite"
+			    ln -s $div "$tftp/$dibase/$arch/current-$suite"
+			fi
 		done
 	fi
 fi
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] standalone-reset: fix check for existing d-i and creation of symlink
  2013-11-01  9:34 [PATCH OSSTEST] standalone-reset: fix check for existing d-i and creation of symlink Ian Campbell
@ 2013-11-01 15:52 ` Ian Jackson
  2013-11-01 16:07   ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Jackson @ 2013-11-01 15:52 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel

Ian Campbell writes ("[PATCH OSSTEST] standalone-reset: fix check for existing d-i and creation of symlink"):
> We need to check for "$diver-$suite" not just "$diver" now
> 
> Also when creating the current symlink only do so if
> mg-debian-installer-update did something, since it will now silently ignore
> unavailable combinations (e.g. armhf on Squeeze)

Looks plausible.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] standalone-reset: fix check for existing d-i and creation of symlink
  2013-11-01 15:52 ` Ian Jackson
@ 2013-11-01 16:07   ` Ian Campbell
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2013-11-01 16:07 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel

On Fri, 2013-11-01 at 15:52 +0000, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST] standalone-reset: fix check for existing d-i and creation of symlink"):
> > We need to check for "$diver-$suite" not just "$diver" now
> > 
> > Also when creating the current symlink only do so if
> > mg-debian-installer-update did something, since it will now silently ignore
> > unavailable combinations (e.g. armhf on Squeeze)
> 
> Looks plausible.
> 
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

THanks, I've pushed this plus "mg-debian-installer-update: restrict
armhf to Wheezy+" (which you acked on IRC) to pretest.

Ian.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-01 16:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01  9:34 [PATCH OSSTEST] standalone-reset: fix check for existing d-i and creation of symlink Ian Campbell
2013-11-01 15:52 ` Ian Jackson
2013-11-01 16:07   ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).