cookutils diff modules/pkgdb @ rev 1063

lighttpd/index.cgi: load main page parts asynchronously
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 04 11:27:06 2018 +0300 (2018-06-04)
parents 3911a2292888
children 0385051c3996
line diff
     1.1 --- a/modules/pkgdb	Wed May 30 01:32:17 2018 +0300
     1.2 +++ b/modules/pkgdb	Mon Jun 04 11:27:06 2018 +0300
     1.3 @@ -14,7 +14,7 @@
     1.4  dblog() { tee -a $LOGS/pkgdb.log; }
     1.5  
     1.6  
     1.7 -# Return size of file in human readible format
     1.8 +# Return size of file in human readable format
     1.9  # Note, "du" in opposite returns size occupied by file on disk (4KB multiple in most cases)
    1.10  
    1.11  filesize() { busybox ls -lh "$1" | awk '{print $5 "B"}'; }
    1.12 @@ -68,11 +68,11 @@
    1.13  chmod 666 .folderlist .filelist
    1.14  
    1.15  # Command `cook pkgdb` may be executed by cron. Creating a packages database
    1.16 -# takes some time, during which previously pending packages may be continue to
    1.17 -# create. This will result in an error due to the lack of a database. This in
    1.18 +# takes some time, during which previously pending packages may continue to
    1.19 +# be created. This will result in an error due to the lack of a database. This in
    1.20  # turn can lead to errors in the creating of many subsequent packages and will
    1.21  # require manual intervention.
    1.22 -# Solution is an atomic update of packages database: first we create new files
    1.23 +# Solution is an atomic update of the packages database: first we create new files
    1.24  # (in the separate temp dir), and then instantly (well, almost) replace the old
    1.25  # files by new ones.
    1.26  
    1.27 @@ -100,7 +100,7 @@
    1.28  		pkgname=$(. $WOK/$i/taz/$j/receipt; echo $PACKAGE)
    1.29  		echo "$pkgname"
    1.30  		sed 's|^$| |' "$WOK/$i/taz/$j/description.txt"
    1.31 -		# if description.txt don't ends with \n then add one
    1.32 +		# if description.txt doesn't end with \n then add one
    1.33  		[ -z "$(tail -c1 $WOK/$i/taz/$j/description.txt)" ] || echo
    1.34  		echo
    1.35  	done >> $dbs/descriptions.txt