Browse Source

sde-reschedule-dependers: Added -t option to always use "theoric" (.cache based) dependers

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
60cf9f345e
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      bin/sde-reschedule-dependers

+ 7
- 2
bin/sde-reschedule-dependers

@ -31,10 +31,12 @@ Supported Options:
--dry-run|-n don't really reschedule --dry-run|-n don't really reschedule
--soft|-s don't remove the packages when rescheduling --soft|-s don't remove the packages when rescheduling
-t use theoric dependers (from .cache at \$confdir)
EOT EOT
} }
shortopts='c:Ans'
shortopts='c:Asnt'
longopts='help,cfg:,any,soft,dry-run' longopts='help,cfg:,any,soft,dry-run'
options=$( getopt -o "$shortopts" -l "$longopts" -- "$@" ) options=$( getopt -o "$shortopts" -l "$longopts" -- "$@" )
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -48,6 +50,7 @@ eval set -- "$options"
reschedule_any= reschedule_any=
reschedule_soft= reschedule_soft=
reschedule_dry= reschedule_dry=
reschedule_theoric=
reschedule_configs= reschedule_configs=
@ -61,6 +64,8 @@ while [ $# -gt 0 ]; do
--soft|-s) reschedule_soft=yes ;; --soft|-s) reschedule_soft=yes ;;
--dry-run|-n) reschedule_dry=yes ;; --dry-run|-n) reschedule_dry=yes ;;
-t) reschedule_theoric=yes ;;
--cfg|-c) reschedule_configs="$reschedule_configs $2" --cfg|-c) reschedule_configs="$reschedule_configs $2"
shift ;; shift ;;
@ -91,7 +96,7 @@ reschedule_dependers()
sandbox="$SDEROOT/build/$( config_id "$config" )" sandbox="$SDEROOT/build/$( config_id "$config" )"
pattern="^\[DEP\].* $pattern\( .*\)\?$" pattern="^\[DEP\].* $pattern\( .*\)\?$"
if config_iscross "$config"; then
if config_iscross "$config" || [ "$reschedule_theoric" = "yes" ]; then
ls -1 "$sandbox/var/adm/packages"/* 2> /dev/null | sed -e 's|.*/||' | ls -1 "$sandbox/var/adm/packages"/* 2> /dev/null | sed -e 's|.*/||' |
while read x; do while read x; do
y=$( package_confdir "$x" ) y=$( package_confdir "$x" )

Loading…
Cancel
Save