From: Ian Campbell Date: Fri, 26 Jun 2015 10:31:30 +0000 (+0100) Subject: mg-debian-installer-update: Print the correct value for TftpDiVersion X-Git-Tag: wip.libvirt-v3-base~101 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b8134c7fa60d75e9ad6ae0de127db4f2ec6e0897;p=people%2Fliuw%2Fosstest.git mg-debian-installer-update: Print the correct value for TftpDiVersion That is, the date without the suite suffix. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- diff --git a/mg-debian-installer-update b/mg-debian-installer-update index ba2fdc4..1595ae5 100755 --- a/mg-debian-installer-update +++ b/mg-debian-installer-update @@ -68,8 +68,8 @@ esac pfile=$sbase/non-free/binary-$arch/Packages.gz dstroot=`getconfig TftpPath`/`getconfig TftpDiBase`/ -date=`date +%Y-%m-%d`-$suite -dst=$arch/$date +date=`date +%Y-%m-%d` +dst=$arch/$date-$suite cd $dstroot mkdir -p $dst @@ -197,5 +197,5 @@ rm Packages.gz #ln -s $date current.new #mv -Tf current.new current -echo $date -echo >&2 "downloaded $dstroot/$arch/$date" +echo "TftpDiVersion $date" +echo >&2 "downloaded $dstroot/$dst"