set -e
. cri-getconfig
+. mgi-common
# iucode_tool is in /usr/sbin, see #788459.
export PATH="/usr/local/sbin:$PATH:/sbin:/usr/sbin"
mkdir intel-ucode
echo >&2 "Fetching Intel ucode"
-curl -s $INTEL_TGZ > intel-ucode/microcode.tgz
+fetch $INTEL_TGZ > intel-ucode/microcode.tgz
tar -C intel-ucode -xaf intel-ucode/microcode.tgz microcode.dat
set -e
. cri-getconfig
+. mgi-common
suite=$1
arch=$2
packages="$3"
-fail () { echo >&2 "$0: $1"; exit 1; }
-
site=http://ftp.debian.org/debian/
sbase=$site/dists/$suite
-fetch () {
- # no-cache due to intercepting proxies messing things up.
- curl -s -H 'Pragma: no-cache' $1
-}
-
case ${suite}_${arch} in
lenny_armhf|squeeze_armhf|lenny_arm64|squeeze_arm64|wheezy_arm64)
# No such thing.
--- /dev/null
+# -*- bash -*-
+
+# Helpers for mg-*
+#
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2015 Citrix Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+fail () { echo >&2 "$0: $1"; exit 1; }
+
+fetch () {
+ # no-cache due to intercepting proxies messing things up.
+ curl -s -H 'Pragma: no-cache' $1
+}