diff --git a/scripts/Download b/scripts/Download index b7fa48f03..2ac99d0c6 100755 --- a/scripts/Download +++ b/scripts/Download @@ -40,11 +40,12 @@ if [ "$1" = '-help' ] ; then echo " ./scripts/Download [ options ] [ ]" echo " ./scripts/Download [ options ] [ ]" echo " ./scripts/Download [ options ] -repository " + echo " ./scripts/Download [ options ] -import " echo " ./scripts/Download [ options ] -sm " echo " ./scripts/Download [ options ] { -all | -required }" echo echo " Download files required for given packages, package description files, package" - echo " repositories, or build configurations." + echo " repositories, import packages, or build configurations." echo " On default, this script auto-detects the best ROCK Linux mirror." echo " See '-mirror none' output for help on bypassing the official mirrors." echo @@ -797,6 +798,14 @@ all() { done } +import() { + local import + for import ; do + mapped_packages $( grep '#if ' package/import/$import/*.desc | \ + column_clean | cut -d' ' -f4) + done +} + packages() { local descfile for arg; do @@ -901,7 +910,7 @@ case "$1" in -required) required ;; -all) all ;; - + -import) shift ; import "$@" ;; -repository) shift ; repository "$@" ;; -sm) shift ; smpatches "$@" ;;