Changeset 45

Show
Ignore:
Timestamp:
06/02/05 20:57:51 (4 years ago)
Author:
athomas
Message:
  • Test for no files installed by 'make install' and abort.
  • Test for pre-existence of package of same name on Arch.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bpkg/trunk/bpkg

    r44 r45  
    131131        fi 
    132132        unset INSTALLWATCH_BACKUP_PATH 
     133        mkdir -p "$DESTROOT" 
    133134        # Move filtered file list into $DESTROOT 
    134135        cat $INSTALLLOG | awk '{print $3 "\n" $4}' | egrep -v "^(${IGNOREPATHS// /|}|$SRCDIR)" | sort | uniq | while read FILE; do 
     
    138139                fi 
    139140        done 
     141        test `find $DESTROOT -type f | wc -l` = 0 && error "No files installed. This could mean the source is already installed." 
    140142} 
    141143 
     
    157159{ 
    158160        error "DEB packager not complete" 
     161} 
     162 
     163packager_pre_arch() 
     164{ 
     165        pacman -Q "$PACKAGE" > /dev/null 2>&1 && error "package '$PACKAGE' already installed, remove it before packaging" 
    159166} 
    160167