|
|
@ -40,11 +40,12 @@ if [ "$1" = '-help' ] ; then |
|
|
|
echo " ./scripts/Download [ options ] [ <Package(s)> ]" |
|
|
|
echo " ./scripts/Download [ options ] [ <Desc file(s)> ]" |
|
|
|
echo " ./scripts/Download [ options ] -repository <Repositories>" |
|
|
|
echo " ./scripts/Download [ options ] -import <package(s)>" |
|
|
|
echo " ./scripts/Download [ options ] -sm <SM-PATCH-ID(s)>" |
|
|
|
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 "$@" ;; |
|
|
|