X-Git-Url: http://git.onelab.eu/?p=bootstrapfs.git;a=blobdiff_plain;f=plc.d%2Fpackages;h=77dcbf4656e313f33286dbef1afb231cab7bf803;hp=56c04509b4d875740600ab1b5538495090c2a229;hb=8701ed06737ebb5f3457a8768f01243865e3ed7a;hpb=b1509ac4a89f51b30a3bab468cadc1613b3bbe74 diff --git a/plc.d/packages b/plc.d/packages index 56c0450..77dcbf4 100755 --- a/plc.d/packages +++ b/plc.d/packages @@ -108,12 +108,21 @@ case "$1" in mode=$1; shift - if [[ -z "$@" ]] ; then - # use all subdirs in install-rpms by default - repositories=/var/www/html/install-rpms/* - else - # else use argv + # on PLC there is a need to select the repos as there are quite a few in there + # would contain names or patterns relative to install-rpms + explicit_list=/var/www/html/install-rpms/PACKAGES + + # use argv if provided + if [[ -n "$@" ]] ; then repositories="$@" + elif [ -f $explicit_list ] ; then + repositories="" + for name in $(grep -v '#' $explicit_list); do + repositories="$repositories /var/www/html/install-rpms/$name" + done + else + # use all subdirs in install-rpms by default + repositories=/var/www/html/install-rpms/* fi ##########