@@ -40,7 +40,7 @@ get_list()
echo "${snapshots}"
;;
infrastructure|i*)
- infrastructure="`grep infrastructure ${local_snapshots}/infrastructure/md5sums | cut -d ' ' -f 3 | cut -d '/' -f 2`"
+ infrastructure="`grep infrastructure ${local_snapshots}/md5sums | cut -d ' ' -f 3 | cut -d '/' -f 2`"
echo "${infrastructure}"
;;
esac
@@ -158,8 +158,6 @@ infrastructure()
{
trace "$*"
- rm -f ${local_snapshots}/infrastructure/md5sums
- fetch_http infrastructure/md5sums
rm -f ${local_snapshots}/infrastructure/ChangeLog
fetch_http infrastructure/ChangeLog
@@ -169,7 +167,13 @@ infrastructure()
error "No dependencies listed for infrastructure libraries!"
return 1
fi
-
+
+ # This shouldn't happen, but it's nice for regression verification.
+ if test ! -e ${local_snapshots}/md5sums; then
+ error "Missing ${local_snapshots}/md5sums file needed for infrastructure libraries."
+ return 1
+ fi
+
# We have to grep each dependency separately to preserve the order, as
# some libraries depend on other libraries being bult first. Egrep
# unfortunately sorts the files, which screws up the order.
From: "Ryan S. Arnold" <ryan.arnold@linaro.org> The file, snapshots/md5sums, has the infrastructure md5sums entries in it already so the infrastructure/ specific md5sums file is redundant. --- cbuild2.sh | 2 +- lib/depend.sh | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-)