# HG changeset patch # User Paul Issott # Date 1494529484 -3600 # Node ID e6e0957f3a48927a8193c3fb524e467219c47b43 # Parent ea11d3c968739ad6579579dc9e00bd665321a9fd Tiny edits diff -r ea11d3c96873 -r e6e0957f3a48 cook --- a/cook Thu May 11 00:36:43 2017 +0300 +++ b/cook Thu May 11 20:04:44 2017 +0100 @@ -530,7 +530,7 @@ } -# Automatic patch the sources. +# Automatically patch the sources. patchit() { [ -f "$stuff/patches/series" ] || return @@ -804,10 +804,10 @@ . "$orig_receipt" - # Is package splitted one? + # Is package split one? [ -n "$SPLIT" -a "${SPLIT/$pkg/}" != "$SPLIT" ]; splitted=$? - # Manage splitted packages + # Manage split packages if $splitted; then # For packages with empty $DEPENDS [ -n "$DEPENDS" ] || DEPENDS="$PACKAGE" diff -r ea11d3c96873 -r e6e0957f3a48 doc/cookopts.txt --- a/doc/cookopts.txt Thu May 11 00:36:43 2017 +0300 +++ b/doc/cookopts.txt Thu May 11 20:04:44 2017 +0100 @@ -60,7 +60,7 @@ !perlz Default action is to strip POD (plain old documentation) from the Perl - modules (*.pm) and programs (*.pl) files. + modules (*.pm) and program (*.pl) files. The presence of this option overrides the default action (Perl files will not be stripped). Note, if you disabled the cleaning by using the higher !strip option, Perl diff -r ea11d3c96873 -r e6e0957f3a48 lighttpd/README.md --- a/lighttpd/README.md Thu May 11 00:36:43 2017 +0300 +++ b/lighttpd/README.md Thu May 11 20:04:44 2017 +0100 @@ -11,7 +11,7 @@ Examples of human friendly URIs: - * /busybox : the page contains all about busybox package + * /busybox : the page contains all about a busybox package * /busybox/receipt : the page with the busybox's receipt * /busybox/files : the page with the file listing * /busybox/file/bin/busybox : get the specified file @@ -26,18 +26,18 @@ Notes about logs ---------------- -Single resource should be associated with the discrete URI. But due to log -rotation, glibc.log.2 become glibc.log.3 after package rebuilding. In such -situation: +Single resources should be associated with the discrete URI. But due to log +rotation, glibc.log.2 becomes glibc.log.3 after package rebuilding. In such +situations: 1. we can't point to the specified log and line within it (URI changed); - 2. caching will fail, already cached log change the name. + 2. caching will fail, already cached log changes the name. -The solution implemented is virtually append log name with the UNIX timestamp -of last modification of the log instead of sequental numbers. So, for example, -'glibc.log.2' will virtually became 'glibc.log.1482699768'. To found the matched +The solution implemented is to virtually append log name with the UNIX timestamp +of last modification of the log instead of sequential numbers. So, for example, +'glibc.log.2' will virtually became 'glibc.log.1482699768'. To find the matched log we need to cycle among ten or less 'glibc.log*' physical files and compare -the files modification date with date in question. +the files modification date with the date in question. Full list of implemented human friendly URIs diff -r ea11d3c96873 -r e6e0957f3a48 lighttpd/cooker.js --- a/lighttpd/cooker.js Thu May 11 00:36:43 2017 +0300 +++ b/lighttpd/cooker.js Thu May 11 20:04:44 2017 +0100 @@ -1,6 +1,6 @@ // // Set of scripts for SliTaz Cooker -// that make the better user interaction with it +// that makes for better user interaction with it // @@ -38,14 +38,14 @@ function stopUpdating() { clearInterval(upID); - // Also remove the table row containing gauge because it will be no actual anymore + // Also remove the table row containing gauge because it will not be actual anymore document.getElementById('pct').innerHTML = ''; // first "parentElement" of gauge is , second - is document.getElementById('gauge').parentElement.parentElement.remove(); } -// Decide whether we need to update percentage +// Decide whether we need to update percentages if (typeof updatePkg !== 'undefined') startUpdating(updatePkg); @@ -73,7 +73,7 @@ } -// Resize the iframe containing document to fit it's height without scrolling +// Resize the iframe containing document to fit its height without scrolling function resizeIframe(theframe) { var height = theframe.contentWindow.document.body.scrollHeight; diff -r ea11d3c96873 -r e6e0957f3a48 lighttpd/index.cgi --- a/lighttpd/index.cgi Thu May 11 00:36:43 2017 +0300 +++ b/lighttpd/index.cgi Thu May 11 20:04:44 2017 +0100 @@ -698,7 +698,7 @@ else toolchain="slitaz-toolchain/" fi - # Main page with summary. Count only package include in ARCH, + # Main page with summary. Count only packages included in ARCH, # use 'cooker arch-db' to manually create arch.$ARCH files. inwok=$(ls $WOK/*/arch.$ARCH | wc -l) cooked=$(ls $PKGS/*.tazpkg | wc -l) @@ -936,7 +936,7 @@ # find main package wanted=$(. $wok/$pkg/receipt; echo $WANTED) main=${wanted:-$pkg} - # identify splitted packages + # identify split packages split="$main $(. $wok/$main/receipt; echo $SPLIT)" [ -d "$wok/$main-dev" ] && split="$split $main-dev" split="$(echo $split | tr ' ' '\n' | sort -u)" @@ -1147,7 +1147,7 @@ wok/*) page="${arg#wok/}"; page="$base/$pkg/browse/${page#*/}";; *) page="$base/$pkg/browse/install/usr/share/$cmd/$arg";; esac - # make the iframe height so long to contain it's content without scrollbar + # make the iframe height so long to contain its content without scrollbar echo "" ;; *.pdf)