source:
jhalfs-0.2-debian_31_as_host-1.patch@
7b20cc5
Last change on this file since 7b20cc5 was 782efe8, checked in by , 19 years ago | |
---|---|
|
|
File size: 1.7 KB |
-
jhalfs
Submitted By: John Kelly (jakelly at shtc dot net) Date: 2005-09-26 Initial Package Version: 0.2 Origin: alfs-discuss Upstream Status: Optional Description: Allow jhalfs to work with a md5sum program that doesn't accept '-' as a filename, like the one shipped with Debian 3.1 stable.
old new 260 260 DIR=`echo $1 | sed 's@-doc@@;s@-linuxthreads@@;s@-libidn@@;s@-testsuite@@'` 261 261 262 262 # Find the md5 sum for this package. 263 if [ $2 != MD5SUMS ] ; then MD5=`grep " $2" MD5SUMS` ; fi 263 if [ $2 != MD5SUMS ] ; then 264 MD5=$(grep " $2" MD5SUMS | sed -r -e 's/^[[:blank:]]+//;s/[[:blank:]]+$//;s/[[:blank:]]+/ /g') 265 md5_file=${MD5#* } ; md5_chksum=${MD5% *} 266 fi 264 267 265 if [ ! -f $2 ] ; then268 if [ ! -f $2 -o $2 == MD5SUMS ] ; then 266 269 case $DL in 267 270 wget ) 268 271 wget $HTTP/$DIR/$2 … … 274 277 echo "$DL not supported at this time." 275 278 ;; 276 279 esac 277 elif ! echo "$MD5" | md5sum -c - >/dev/null 2>/dev/null; then280 elif [ "$md5_chksum" != "$(md5sum $md5_file | sed -r -e 's/^[[:blank:]]+//;s/[[:blank:]]+$//;s/[[:blank:]]+/\t/g' | cut -f 1)" ] ; then 278 281 case $DL in 279 282 wget ) 280 283 wget -c $HTTP/$DIR/$2 … … 287 290 ;; 288 291 esac 289 292 fi 290 if [ $2 != MD5SUMS ] && ! echo "$MD5" | md5sum -c - ; then 291 exit 1 293 if [ $2 != MD5SUMS ] ; then 294 if [ "$md5_chksum" != "$(md5sum $md5_file | sed -r -e 's/^[[:blank:]]+//;s/[[:blank:]]+$//;s/[[:blank:]]+/\t/g' | cut -f 1)" ] ; then 295 echo "$2 md5 checksum does not match $md5_chksum" 296 exit 1 297 fi 292 298 fi 293 299 if [ $2 != MD5SUMS ] ; then 294 300 echo `grep "$MD5" MD5SUMS` >> MD5SUMS-$VERSION
Note:
See TracBrowser
for help on using the repository browser.