66 |
case ${method} in |
case ${method} in |
67 |
md5) cmd="md5sum" ;; |
md5) cmd="md5sum" ;; |
68 |
sha256) cmd="sha256sum" ;; |
sha256) cmd="sha256sum" ;; |
69 |
*) die "mchecksum(): unkown method '${method}'" ;; |
*) die "mchecksum(): unknown method '${method}'" ;; |
70 |
esac |
esac |
71 |
|
|
72 |
if [[ -d ${rundir} ]] |
if [[ -d ${rundir} ]] |
1401 |
real_uris="$(convertmirrors ${uri})" |
real_uris="$(convertmirrors ${uri})" |
1402 |
|
|
1403 |
# verbose or not |
# verbose or not |
1404 |
mqueryfeature "!verbose" && wget_opts="--quiet" |
mqueryfeature "!verbose" && wget_opts+=" --quiet" |
1405 |
|
|
1406 |
# filter wget options if busybox was found |
# filter wget options if busybox was found |
1407 |
wget_opts="$(busybox_filter_wget_options ${WGET_FETCH_OPTIONS})" |
wget_opts+=" $(busybox_filter_wget_options ${WGET_FETCH_OPTIONS})" |
1408 |
|
|
1409 |
# create outputdir |
# create outputdir |
1410 |
[[ ! -d ${outputdir} ]] && install -d "${outputdir}" |
[[ ! -d ${outputdir} ]] && install -d "${outputdir}" |
3293 |
purge|!purge) retval=0 ;; |
purge|!purge) retval=0 ;; |
3294 |
qalint|!qalint) retval=0 ;; |
qalint|!qalint) retval=0 ;; |
3295 |
regentree|!regentree) retval=0 ;; |
regentree|!regentree) retval=0 ;; |
3296 |
|
resume|!resume) retval=0 ;; |
3297 |
stepbystep|!stepbystep) retval=0 ;; |
stepbystep|!stepbystep) retval=0 ;; |
3298 |
srcpkgbuild|!srcpkgbuild) retval=0 ;; |
srcpkgbuild|!srcpkgbuild) retval=0 ;; |
3299 |
srcpkgtarball|!srcpkgtarball) retval=0 ;; |
srcpkgtarball|!srcpkgtarball) retval=0 ;; |
3306 |
|
|
3307 |
load_mage_features() |
load_mage_features() |
3308 |
{ |
{ |
|
echo -en "${COLBLUE}---${COLGREEN} Loading mage-features... ${COLDEFAULT}" |
|
3309 |
for i in ${MAGE_FEATURES_GLOBAL[*]} ${MAGE_FEATURES[*]} |
for i in ${MAGE_FEATURES_GLOBAL[*]} ${MAGE_FEATURES[*]} |
3310 |
do |
do |
3311 |
FVERBOSE=off msetfeature ${i} |
FVERBOSE=off msetfeature ${i} |
3312 |
done |
done |
|
|
|
|
echo -e "${COLGREEN}done${COLDEFAULT}" |
|
3313 |
} |
} |
3314 |
|
|
3315 |
msetfeature() |
msetfeature() |
3326 |
|
|
3327 |
if ! known_mage_feature "${feature}" |
if ! known_mage_feature "${feature}" |
3328 |
then |
then |
3329 |
[[ ${FVERBOSE} = off ]] || echo "unkown feature ${feature}, ignoring it" |
[[ ${FVERBOSE} = off ]] || echo "unknown feature ${feature}, ignoring it" |
3330 |
return 3 |
return 3 |
3331 |
fi |
fi |
3332 |
|
|