*) 2005-08-11
+- more hdw-get improvements
+
+*) 2005-08-11
+
- improved helper scripts
- more package updates (stage 5 done)
- fixes to fai routine, improved hdw-get
auto_resolve_deps=""
simulate=""
base=""
+answer="y"
FL_DIR="var/adm/flists"
DEPS_DIR="var/adm/deps/run"
udeps=""
tudeps=""
for dep in $deps; do
- [ ! -f $inst_root/$FL_DIR/$dep-* ] && \
- udeps="$dep $udeps"
+ [ ! -f $inst_root/$FL_DIR/$dep-[0-9]* ] && \
+ [ "$pkg" != "$dep" ] && \
+ udeps="$dep $udeps"
done
while [ "$udeps" != "$tudeps" ] ; do
tudeps="$udeps"
[ "$i" = "$dep" ] && exists=1
done
[ "$exists" = "0" ] && \
- udeps="$udeps $dep"
+ [ "$dep" != "$pkg" ] && \
+ udeps="$udeps $dep"
done
done
done
- echo "$pkg depends on the following uninstalled packages:"
- echo "$udeps"
- echo
- echo "continue? [y,n] (default 'n')"
- if [ -z $auto_resolve_deps ] ; then
- read answer
- if [ "$answer" = "y" ] ; then
- for i in $udeps; do
- [ "$simulate" != "1" ] && \
- $0 -no-dep install $inst_root $i
- done
+ if [ -n "$udeps" ] ; then
+ echo "$pkg has unresolved dependencies:"
+ echo "-> $udeps <-"
+ echo
+ echo "continue? [y,n] (default 'n')"
+ if [ -z $auto_resolve_deps ] ; then
+ read answer
+ if [ "$answer" = "y" ] ; then
+ for i in $udeps; do
+ [ "$simulate" != "1" ] && \
+ $0 -no-dep install $inst_root $i
+ done
+ fi
fi
fi
fi
- if [ "$simulate" != "1" ] ; then
+ if [ "$simulate" != "1" -a "$answer" != "n" ] ; then
# check/install package
if [ -f $package ] ; then