- for repo in `cat default-packages`; do
- if test -d `basename $repo`; then
- echo "warning: `basename $repo` already present; omitting"
+
+ if test "$extra" = "YES"; then
+ packages=`cat core-packages extra-packages`
+ else
+ packages=`cat core-packages`
+ fi
+
+ for pkg in $packages; do
+ if test -d $pkg; then
+ echo "warning: $pkg already present; omitting"