Changeset 1849


Ignore:
Timestamp:
08/01/07 08:48:03 (6 years ago)
Author:
alanbach-guest
Message:

Minor fix in watch.sh

Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/watch.php

    r1553 r1849  
    1515 
    1616        $arrarchs=explode("-", $arrvars[1]); 
     17 
     18        $spkg = $arrvars[2]; 
    1719 
    1820        if(!empty($arrarchs[0])){ 
     
    4143 
    4244        $pkg=$vals[$index['PACKAGE'][0]][value]; 
    43         $pkg=str_replace("KKK", "+", $pkg);  
     45     
     46        if(!empty($pkg)){ 
     47                $pkg=str_replace("KKK", "+", $pkg);  
     48        }else{ 
     49                $pkg = $spkg; 
     50        } 
    4451 
    4552        $upstream=$vals[$index['UPSTREAM-VERSION'][0]][value]; 
     
    6370        switch($status) 
    6471        { 
    65                 case "up to date": 
     72                case "Up to date": 
    6673                        $bk_color="#00ff00"; 
    6774                        break; 
     
    7279                        $bk_color="#ffcc99"; 
    7380                        break; 
     81                default: 
     82                        $status = "Watch file does not find" 
     83                        $bk_color="#ffea99"; 
     84                        break;                   
    7485        }        
    7586         
  • scripts/watch.sh

    r1554 r1849  
    2020echo $HEADER > $BASE_PATH/index.html 
    2121 
    22 LIST=`/usr/bin/find $SVN_REPO -name watch | /bin/grep debian | /bin/grep trunk | sort` 
     22LIST=`/usr/bin/find $SVN_REPO -name watch | /bin/grep debian | /bin/grep trunk | sort -u` 
    2323 
    2424for x in $LIST 
     
    5050 
    5151ARCHS="$ALLARCH-$I386-$AMD64" 
     52FAKEARCHS="$ALLARCH$I386$AMD64" 
    5253 
    5354# work around the plus bug 
    5455x=`echo $x | /usr/bin/awk '{ gsub(/+/, "KKK"); print }'` 
    5556 
    56 /usr/bin/lynx -source $BASE_URL/watch.php?vars=${x/%debian\/watch/}*$ARCHS | /bin/sed s/Debian/Parsix/g >> $BASE_PATH/index.html 
     57if [ ! -z "$FAKEARCHS" ]; then 
     58/usr/bin/lynx -source $BASE_URL/watch.php?vars=${x/%debian\/watch/}*$ARCHS*$PKG | /bin/sed s/Debian/Parsix/g >> $BASE_PATH/index.html 
     59fi 
    5760 
    5861done 
Note: See TracChangeset for help on using the changeset viewer.