(file) Return to tog-pegasus.spec CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

Diff for /pegasus/rpm/tog-pegasus.spec between version 1.28 and 1.29

version 1.28, 2005/02/25 02:52:02 version 1.29, 2005/03/03 16:44:09
Line 163 
Line 163 
 %define PEGASUS_MANADMIN_DIR   %PEGASUS_MAN_DIR/man8 %define PEGASUS_MANADMIN_DIR   %PEGASUS_MAN_DIR/man8
 %define PEGASUS_VARDATA_DIR    /var/opt/tog-pegasus %define PEGASUS_VARDATA_DIR    /var/opt/tog-pegasus
 %define PEGASUS_REPOSITORY_DIR      %PEGASUS_VARDATA_DIR/repository %define PEGASUS_REPOSITORY_DIR      %PEGASUS_VARDATA_DIR/repository
   %define PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/prev_repository
 %define PEGASUS_VARDATA_CACHE_DIR   %PEGASUS_VARDATA_DIR/cache %define PEGASUS_VARDATA_CACHE_DIR   %PEGASUS_VARDATA_DIR/cache
 %define PEGASUS_LOCAL_AUTH_DIR      %PEGASUS_VARDATA_CACHE_DIR/localauth %define PEGASUS_LOCAL_AUTH_DIR      %PEGASUS_VARDATA_CACHE_DIR/localauth
 %define PEGASUS_MOF_DIR            %PEGASUS_PROD_DIR/mof %define PEGASUS_MOF_DIR            %PEGASUS_PROD_DIR/mof
Line 635 
Line 636 
   #   #
   # Save the current repository to prev_repository.   # Save the current repository to prev_repository.
   #   #
     if [[ -d %PEGASUS_REPOSITORY_DIR ]]
   REPOSITORY_LOC=%PEGASUS_REPOSITORY_DIR  
   PREV_REPOSITORY_LOC=%PEGASUS_REPOSITORY_DIR"/prev_repository"  
   
   if [[ -d $REPOSITORY_LOC ]]  
   then   then
       if [[ -d $PREV_REPOSITORY_LOC ]]        if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]]
       then       then
           rm -rf $PREV_REPOSITORY_LOC            rm -rf %PEGASUS_PREV_REPOSITORY_DIR
       fi       fi
  
       mv $REPOSITORY_LOC $PREV_REPOSITORY_LOC        mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
       mkdir $REPOSITORY_LOC        mkdir %PEGASUS_REPOSITORY_DIR
   fi   fi
 fi fi
  


Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2