scripts/DEFAULT/S01: addpackage is broken
Felix Kühling
fxkuehl at gmx.de
Wed Oct 30 15:05:19 CET 2002
Hi,
The following code breaks as soon as addpackages contains more than one
package:
for pack in "$addpackages"; do
if [ -f $FAI/files/packages/$pack ]; then
dpkg -i --root=$target $FAI/files/packages/$pack
else
echo "Package $pack not found in $FAI/files/packages/"
fi
done
$addpackages should not be quoted in the for-line. But then I ran into
trouble with cyclic package dependencies. (I have to install
libdb-compat and libc6 from Sarge) The best thing in this case is to
install all packages with one dpkg command line.
This code snippet does the trick:
(
cd $FAI/files/packages
dpkg --install --root=$target $addpackages
)
Regards,
Felix
__\|/__ ___ ___ ___
__Tschüß_______\_6 6_/___/__ \___/__ \___/___\___You can do anything,___
_____Felix_______\Ä/\ \_____\ \_____\ \______U___just not everything____
fxkuehl at gmx.de >o<__/ \___/ \___/ at the same time!
More information about the linux-fai
mailing list