tazwok rev 519 4.3

Merge bugfixes from default branch.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue May 10 08:11:06 2011 +0000 (2011-05-10)
parents 88800c1af28d 9ea09bdcab48
children 71bd653c6023
files examples/tazwok.conf tazwok
line diff
     1.1 --- a/.hgtags	Wed May 04 13:16:02 2011 +0000
     1.2 +++ b/.hgtags	Tue May 10 08:11:06 2011 +0000
     1.3 @@ -28,3 +28,4 @@
     1.4  a99465ca9b36dc10eaf8ca255306f2a78f4deb5a 4.2.11
     1.5  ada9fd93793699e4858c3102a7110bedb5e86710 4.2.12
     1.6  621bcc0de8ca7e029c7ca34060786f4cf8fba0f9 4.2.13
     1.7 +1165e2c0ac23be43123fef2fc5b3b13ef11e2099 4.2.14
     2.1 --- a/Makefile	Wed May 04 13:16:02 2011 +0000
     2.2 +++ b/Makefile	Tue May 10 08:11:06 2011 +0000
     2.3 @@ -2,17 +2,27 @@
     2.4  #
     2.5  PREFIX?=/usr
     2.6  DOCDIR?=/usr/share/doc
     2.7 +CHSCRIPTS?=/usr/lib/slitaz/chroot-scripts
     2.8 +WWWBB?=/usr/share/slitaz/web-bb
     2.9  
    2.10  all:
    2.11  
    2.12  install:
    2.13  	@echo "Installing Tazwok into $(PREFIX)/bin..."
    2.14 -	install -g root -o root -m 0777 tazwok $(PREFIX)/bin
    2.15 -	install -g root -o root -m 0644 examples/tazwok.conf /etc/slitaz
    2.16 -	install -g root -o root -m 0644 examples/config.site /etc
    2.17 +	install -g root -o root -m 0755 tazwok $(PREFIX)/bin
    2.18 +	install -g root -o root -m 0755 examples/tazwok.conf /etc/slitaz
    2.19 +	install -g root -o root -m 0755 examples/config.site /etc
    2.20 +	install -g root -o root -m 0755 examples/tazbb $(PREFIX)/bin
    2.21  	@echo "Installing documentation files..."
    2.22  	install -g root -o root -m 0755 -d $(DOCDIR)/tazwok
    2.23 -	install -g root -o root -m 0644 doc/* $(DOCDIR)/tazwok
    2.24 +	install -g root -o root -m 0755 doc/* $(DOCDIR)/tazwok
    2.25 +	install -g root -o root -m 0755 applications $(PREFIX)/share
    2.26 +	@echo "Installing Chroot scripts..."
    2.27 +	install -g root -o root -m 0755 -d $(CHSCRIPTS)/tazwok
    2.28 +	install -g root -o root -m 0755 chroot-scripts/* $(CHSCRIPTS)/tazwok
    2.29 +	@echo "Installing web files..."
    2.30 +	install -g root -o root -m 0755 -d $(WWWBB)
    2.31 +	install -g root -o root -m 0755 web/* $(WWWBB)
    2.32  
    2.33  uninstall:
    2.34  	rm -f $(PREFIX)/bin/tazwok
     3.1 --- a/doc/tazwok.en.html	Wed May 04 13:16:02 2011 +0000
     3.2 +++ b/doc/tazwok.en.html	Tue May 10 08:11:06 2011 +0000
     3.3 @@ -38,7 +38,13 @@
     3.4  <h2>SYNTAX</h2>
     3.5  <pre> tazwok [command] [package|list|category|dir] [--option]
     3.6  </pre>
     3.7 -
     3.8 +<h2>WARNING</h2>
     3.9 +<p>
    3.10 +This version of tazwok (tazwok-3.9 .*) is currently subject to active development and parts of program have 
    3.11 +not yet been completely revised and corrected. In its current state, however you should not encounter major 
    3.12 +problems during use. Any suggestions/comments/contributions are welcome: you will find the email 
    3.13 +address of the maintainer at the end of this document.
    3.14 +</p>
    3.15  <h2>DESCRIPTION</h2>
    3.16  <p>
    3.17  Tazwok is a command line tool to configure and compile a package from source. Tazwok can also create packages
    3.18 @@ -47,7 +53,7 @@
    3.19  Tazpkg and consists of different variables and functions. Tazwok uses a configuration file (/etc/tazwok.conf)
    3.20  to find the path to the wok, the package sources, and any generated .tazpkg packages. Tazwok can also generate
    3.21  a list of packages with their md5, create packages interactively, search for packages in the wok, clean generated files and even 
    3.22 -cook several packages at once (See available commands).
    3.23 +cook several packages at once (See available commands). Tazwok can be used to recompile SliTaz entirely from source.
    3.24  </p>
    3.25  <p>
    3.26  Tazwok is entirely built from scratch using SHell script, compatible with Bash; it runs under Ash - 
    3.27 @@ -55,6 +61,26 @@
    3.28  Cookbook also provides documentation about Tazwok and the package receipts.
    3.29  </p>
    3.30  
    3.31 +<h2>GENERAL OPTIONS</h2>
    3.32 +<p>
    3.33 +Three options can be used with almost all orders tazwok. They are used to define the deposit to 
    3.34 +which to apply the command, ie the folder containing subfolders clean-wok, wok, packages, 
    3.35 +packages, incoming, src, log, optionally chroot. They are: SLITAZ_DIR: the directory in which are 
    3.36 +deposits (default: /home/slitaz as defined in /etc/slitaz/slitaz.conf) SLITAZ_VERSION name of 
    3.37 +the reference version, such stable cooking, ... (default: version that you use as defined 
    3.38 +in /etc/slitaz-release) undigest: Indicates the use of a secondary deposit, for which 
    3.39 +the reference is SLITAZ_VERSION.
    3.40 +</p>
    3.41 +<p>
    3.42 +In the absence of the option undigest, the address used will be depositing 
    3.43 +$SLITAZ_DIR/$SLITAZ_VERSION (example would be /home/slitaz/cooking by default 
    3.44 +if you use cooking) undigest If the option is present, it will $SLITAZ_DIR/$undigest 
    3.45 +undigest option is important for some commands (eg configure-chroot build-depends, etc..), 
    3.46 +when packets are missing from the secondary deposit, or information concerning them must be 
    3.47 +found in the deposit reference. In other cases the use of or undigest SLITAZ_VERSION gives the same result.
    3.48 +</p>
    3.49 +<pre> # tazwok build-depends linux --SLITAZ_DIR=/home/pas-slitaz --SLITAZ_VERSION=cooking --undigest=undigest
    3.50 +</pre>
    3.51  <h2>COMMANDS</h2>
    3.52  <a name="usage"></a>
    3.53  <h3><font color="#6c0023">usage</font></h3>
    3.54 @@ -134,11 +160,62 @@
    3.55  <a name="cook-list"></a>
    3.56  <h3><font color="#6c0023">cook-list</font></h3>
    3.57  <p>
    3.58 -This command will launch 'tazwok cook' on all the packages contained in the list file specified in the argument.
    3.59 -Cook-list is used for example, to cook the base system (base-system) without glibc. On SliTaz, you will find
    3.60 -examples of cooking lists in the directory /usr/share/examples/tazwok.cooklists:
    3.61 +This command will launch 'tazwok cook' on all packages in the list specified as an argument, and 
    3.62 +their dependencies cooking if they are missing or need updating. Cook-list is used, for example, 
    3.63 +to cook the base system, core applications, the X, packets of flavor, etc.. Cooklist can also be 
    3.64 +used on a single package with the option - pkg. The option - Forced can be used to anneal all the 
    3.65 +dependencies required cooking, even if they are already available and current, example toolchain 
    3.66 +(see SLITAZ_TOOLCHAIN ​​in /etc/slitaz/tazwok.conf). Without argument, cook-list uses the 
    3.67 +default list of cooking, located in the folder 'package '.
    3.68  </p>
    3.69 -<pre> # tazwok cook-list packages.cooklist
    3.70 +<pre> # tazwok cook-list 
    3.71 + # tazwok cook-list packages.cooklist --forced
    3.72 + # tazwok cook-list --pkg=firefox
    3.73 +</pre>
    3.74 +<a name="cook-commit"></a>
    3.75 +<h3><font color="#6c0023">cook-commit</font></h3>
    3.76 +<p>
    3.77 +The command 'cook-commit' to look for packages with revenue /stuff/descriptions were modified and updated 
    3.78 +using cook. The research uses data changes md5 (identification by measuring different characteristics 
    3.79 +of files) elements used in the previous cooking packages. This information is stored in the wok, if 
    3.80 +they are absent they are derived from packages already prepared. The option - Forced commit forces to 
    3.81 +check md5 use data from the packages, which is useful for retrieving consistent information if you 
    3.82 +changed the lists commit/cooklist manually (rare). Default check-commit targets only those packages 
    3.83 +which are already present in the package pools. The option - missing can scan the entire wok and 
    3.84 +add all the packages that have not been cooked to the list.
    3.85 +</p>
    3.86 +<pre> # tazwok cook-commit # cook packages that need updating
    3.87 + # tazwok cook-commit --forced # Same, correting any inconsistencies in the data
    3.88 + # tazwok cook-commit --missing # Cook packages that need updating + the missing packets
    3.89 + # tazwok cook-commit --missing --forced
    3.90 +</pre>
    3.91 +<a name "cook-all"></a>
    3.92 +<h3><font color="#6c0023">cook-all</font></h3>
    3.93 +<p>
    3.94 +The command 'cook-all ' anneal allows all packets from wok. Without options, it is identical to cook-commit: 
    3.95 +annealing only packets with receipts / description.txt / stuffs have been modified. The option - missing 
    3.96 +also has the same effect as in cook-commit: add all the packages that have not yet been prepared. 
    3.97 +The difference lies in the - Forced: here it means anneal all packets, even if they have not been 
    3.98 +updated since the last firing. As explained below, the core of the tool chain will never be annealed 
    3.99 +by this command.
   3.100 +</p>
   3.101 +<pre> # tazwok cook-all # identical to tazwok cook-commit
   3.102 +# tazwok cook-all --missing # identical to tazwok cook-commit --missing
   3.103 +# tazowk cook-all --forced # annealing all existing packages in your repository except the toolchain
   3.104 +# tazwok cook-all --forced --missing # annealing all packages of the wok execpt the toolchain
   3.105 +</pre>
   3.106 +<a name="cook-toolchain"></a>
   3.107 +<h3><font color="#6c0023">cook-toolchain</font></h3>
   3.108 +<p> Cook-toolchain is dedicated to controlling the firing of packages that allow all other preparations.
   3.109 + Indeed, the packets in the heart of the tool chain (for SliTaz linux-api-headers/glibc/binutils/gcc) 
   3.110 + can not / should not be cooked differently in SliTaz. The preparation process of the tool chain is 
   3.111 + unique, and uses the script 'cook-toolchain' from 'tazchroot'. The method used is an adaptation of 
   3.112 + that presented in the book Linux From Scratch: a first toolchain temporary and unrelated to the 
   3.113 + equipment / system used is prepared and used in cooking packages from the "real" chain tools. It 
   3.114 + should be noted that this operation is quite long (several hours to several tens of hours depending 
   3.115 + on hardware). This is the first step to fully realize SliTaz to compile from source.
   3.116 +</p>
   3.117 +<pre> # tazwok cook-toolchain
   3.118  </pre>
   3.119  <a name="clean"></a>
   3.120  <h3><font color="#6c0023">clean</font></h3>
   3.121 @@ -171,6 +248,33 @@
   3.122   # tazwok gen-list --text
   3.123   # tazwok gen-list /path/to/repository
   3.124  </pre>
   3.125 +<a name="check-list"></a>
   3.126 +<h3><font color="#6c0023">check-list</font></h3>
   3.127 +<p>
   3.128 +The command 'checklist' fulfills the same function as 'gen-list', but it looks for packages that information 
   3.129 +must be updated. For this reason it is generally faster, particularly when few packets have been modified. 
   3.130 +Commands automatically use the cook. As for 'gen-list', if you do not specify a target, 'packages'and 
   3.131 +'packages-incoming' will both be updated.
   3.132 +</p>
   3.133 +<pre> # tazwok check-list
   3.134 + # tazwok check-list /path/to/repository
   3.135 +</pre>
   3.136 +<a name="gen-wok-db"></a>
   3.137 +<h3><font color="#6c0023">gen-wok-db</font></h3>
   3.138 +<p>
   3.139 +'wok-db' means files used to quickly obtain the dependency relationships between revenue. This information is usually 
   3.140 +added whenever necessary, and automatically, by tazwok. 'gen-wok-db ' is used to re-generate them in case of file corruption 
   3.141 +(eg you killed tazwok while automatically generating these files).
   3.142 +</p>
   3.143 +<pre> # tazwok gen-wok-db
   3.144 +</pre>
   3.145 +<a name="report"></a>
   3.146 +<h3><font color="#6c0023">report</font></h3>
   3.147 +<p>Displays the contents of lists: commit / cooklist / broken / blocked, or only the requested list argument.
   3.148 +</p>
   3.149 +<pre> # tazwok report
   3.150 + # tazwok report cooklist
   3.151 +</pre>
   3.152  <a name="gen-clean-wok"></a>
   3.153  <h3><font color="#6c0023">gen-clean-wok and clean-wok</font></h3>
   3.154  <p>
   3.155 @@ -206,6 +310,16 @@
   3.156   # tazwok compare --remove
   3.157   # tazwok compare --cook
   3.158  </pre> 
   3.159 +<a name="check-commit"></a>
   3.160 +<h3><font color="#6c0023">check-commit</font></h3>
   3.161 +<p>
   3.162 +'check-commit' scans the wok to find recipes that have been modified and added to the cooklist default. 
   3.163 +Options --forced and --missing here play the same role for cook-commit.
   3.164 +</p>
   3.165 +<pre> # tazwok check-commit
   3.166 +# tazwok check-commit --forced
   3.167 +# tazwok check-commit --missing
   3.168 +</pre>
   3.169  <a name="check"></a>
   3.170  <h3><font color="#6c0023">check</font></h3>
   3.171  <p>
   3.172 @@ -213,7 +327,38 @@
   3.173  </p>
   3.174  <pre> # tazwok check
   3.175  </pre>
   3.176 -
   3.177 +<a name="update-wok"></a>
   3.178 +<h3><font color="#6c0023">update-wok</font></h3>
   3.179 +<p>
   3.180 +'update-wok' downloads or updates the contents in the wok-wok clean record of the deposit. Then it copies 
   3.181 +the new elements in the cooking wok (wok folder) and remove those that no longer exist in the new version. 
   3.182 +The addresses and the method (or tarball hg) used by this command are defined in tazwok.conf. The --local 
   3.183 +option allows for only the second operation (copy files to the wok). This is useful if you have make changes
   3.184 +in the local clean-wok and want to add to wok cooking. This is especially useful for users of 
   3.185 +mercurial (hg), since this tool is much faster with a wok that contains no files associated with the 
   3.186 +compilation. In this case, make changes in the clean-wok then: tazwok update-wok --local.
   3.187 +</p>
   3.188 +<pre> # tazwok update-wok
   3.189 + # tazwok update-wok --local
   3.190 +</pre>
   3.191 +<a name="webserver"></a>
   3.192 +<h3><font color="#6c0023">webserver</font></h3>
   3.193 +<p>
   3.194 +'webserver' is the command that creates a PHP interface that provides information about the status 
   3.195 +of deposits. Several deposits can be added/removed by using the options --SLITAZ_VERSION/--undigest. 
   3.196 +The argument 'on ' you can add a deposit to the web interface, while the 'off' withdraw (in each case). 
   3.197 +Using the default configuration, the interface will be available in your browser address 
   3.198 +http://localhost/vhosts/bb/. Package 'php' should be installed to use this command.
   3.199 +</p>
   3.200 +<pre> # tazwok webserver on
   3.201 + # tazwok webserver off
   3.202 +</pre>
   3.203 +<h3><font color="#6c0023">chroot</font></h3>
   3.204 +<p>
   3.205 +Gen and Chroot into /home/slitaz/VERSION/chroot for building packages
   3.206 +</p>
   3.207 +<pre> # tazwok chroot
   3.208 +</pre>
   3.209  <h2>MAINTAINER</h2>
   3.210  <p>
   3.211  Christophe Lincoln &lt;pankso at slitaz.org&gt;
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/examples/README.tazbb	Tue May 10 08:11:06 2011 +0000
     4.3 @@ -0,0 +1,9 @@
     4.4 +Tazbb is a wrapper script to automate doing things when using crond
     4.5 +for doing daily builds.
     4.6 +
     4.7 +examples for /var/spool/cron/crontabs/root:
     4.8 +NOTE: you need full path for file you want to execute in chroot
     4.9 +*/2 * * * tazbb /usr/bin/tank-bin
    4.10 +
    4.11 +1 * * * tazbb /usr/bin/gen-iso
    4.12 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/examples/tazbb	Tue May 10 08:11:06 2011 +0000
     5.3 @@ -0,0 +1,29 @@
     5.4 +#!/bin/sh
     5.5 +
     5.6 +. /etc/slitaz/slitaz.conf
     5.7 +
     5.8 +LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}"
     5.9 +if [ -f $LOCAL_REPOSITORY/tazchroot.conf ]; then
    5.10 +	. $LOCAL_REPOSITORY/tazchroot.conf
    5.11 +else
    5.12 +	tazwok configure-chroot
    5.13 +	. $LOCAL_REPOSITORY/tazchroot.conf
    5.14 +fi
    5.15 +
    5.16 +if [ -f $LOCAL_REPOSITORY/tazwok.conf ]; then
    5.17 +	. $LOCAL_REPOSITORY/tazwok.conf
    5.18 +else
    5.19 +	. /etc/slitaz/tazwok.conf
    5.20 +fi
    5.21 +
    5.22 +[ -d $chroot_dir ] || create_chroot
    5.23 +
    5.24 +if [ -f $LOCAL_REPOSITORY/chroot${1} -a -x $LOCAL_REPOSITORY/chroot${1} ]; then
    5.25 +	mount_chroot
    5.26 +	chroot $LOCAL_REPOSITORY/chroot $1
    5.27 +	umount_chroot
    5.28 +else
    5.29 +	echo "Make sure to use full path and file is executable in chroot"
    5.30 +	exit 1
    5.31 +fi
    5.32 +
     6.1 --- a/examples/tazwok.conf	Wed May 04 13:16:02 2011 +0000
     6.2 +++ b/examples/tazwok.conf	Tue May 10 08:11:06 2011 +0000
     6.3 @@ -130,6 +130,7 @@
     6.4  # Note : order is not important here.
     6.5  SLITAZ_TOOLCHAIN_EXTRA="tazpkg
     6.6  tazwok
     6.7 +slitaz-boot-scripts
     6.8  pkg-config
     6.9  libtool
    6.10  libpthread-stubs"
     7.1 --- a/tazwok	Wed May 04 13:16:02 2011 +0000
     7.2 +++ b/tazwok	Tue May 10 08:11:06 2011 +0000
     7.3 @@ -418,12 +418,12 @@
     7.4  		if [ "$auto_install" = yes ]; then
     7.5  			install_missing
     7.6  		else
     7.7 -			echo "================================================================================"
     7.8 +			horizontal_line
     7.9  			for pkg in $MISSING_PACKAGE
    7.10  			do
    7.11  				echo "Missing : $pkg"
    7.12  			done
    7.13 -			echo "================================================================================"
    7.14 +			horizontal_line
    7.15  			echo "You can continue, exit or install missing dependencies."
    7.16  			echo -n "Install, continue or exit (install/y/N) ? "; read answer
    7.17  			case $answer in
    7.18 @@ -489,6 +489,8 @@
    7.19  	else
    7.20  		_pkg=$src/_pkg
    7.21  	fi
    7.22 +	# compatibly with cookutils
    7.23 +	install=$_pkg
    7.24  }
    7.25  
    7.26  # Output $VERSION-$EXTRAVERSION using packages.txt
    7.27 @@ -817,8 +819,12 @@
    7.28  					continue
    7.29  				fi
    7.30  			;;
    7.31 -			subversion\|*)
    7.32 -				file=${file#subversion|}
    7.33 +			svn*|subversion*)
    7.34 +				if $(echo "$WGET_URL" | fgrep -q svn); then
    7.35 +					file=${WGET_URL#svn|}
    7.36 +				else
    7.37 +					file=${WGET_URL#subversion|}
    7.38 +				fi
    7.39  				[ "$COMMAND" = get-src ] && [ ! -f $INSTALLED/subversion/receipt ] && tazpkg get-install subversion --forced
    7.40  				if [ -f $INSTALLED/subversion/receipt ]; then
    7.41  					mkdir $tmp_src
    7.42 @@ -834,8 +840,12 @@
    7.43  					continue
    7.44  				fi
    7.45  			;;
    7.46 -			mercurial\|*)
    7.47 -				file=${file#mercurial|}
    7.48 +			hg*|mercurial*)
    7.49 +				if $(echo "$WGET_URL" | fgrep -q hg); then
    7.50 +					file=${WGET_URL#hg|}
    7.51 +				else
    7.52 +					file=${WGET_URL#mercurial|}
    7.53 +				fi
    7.54  				[ "$COMMAND" = get-src ] && [ ! -f $INSTALLED/mercurial/receipt ] && tazpkg get-install mercurial --forced
    7.55  				if [ -f $INSTALLED/mercurial/receipt ]; then
    7.56  					mkdir $tmp_src
    7.57 @@ -1629,7 +1639,9 @@
    7.58  			cp -f $tmp/db /tmp/remain-depends.txt
    7.59  			echo "Can't go further because of dependency loop(s). The remaining packages will be commented in the cookorder and will be unbuilt in case of major updates until the problem is solved." >&2
    7.60  			for remaining in $(cut -f 1 $tmp/db); do
    7.61 -				echo "$remaining" >> $blocked
    7.62 +				if ! grep -q ^$remaining $PACKAGES_REPOSITORY/blocked; then
    7.63 +					echo "$remaining" >> $PACKAGES_REPOSITORY/blocked
    7.64 +				fi
    7.65  			done
    7.66  			break
    7.67  		fi
    7.68 @@ -2437,7 +2449,7 @@
    7.69  	sed 's/LC_ALL/LC_ALL=POSIX/' -i \$chroot_dir/etc/profile
    7.70  
    7.71  	# The build bot may run in a sandbox: link sandbox lockfile.
    7.72 -	ln -s \$LOCAL_REPOSITORY/sandbox/proc/1 \$chroot_dir/proc/1
    7.73 +	[ -d \$LOCAL_REPOSITORY/sandbox ] && ln -s \$LOCAL_REPOSITORY/sandbox/proc/1 \$chroot_dir/proc/1
    7.74  }
    7.75  
    7.76  mount_chroot()
    7.77 @@ -2730,7 +2742,7 @@
    7.78  			ASKED_CATEGORY=$2
    7.79  			echo ""
    7.80  			echo -e "\033[1mPackages in category :\033[0m $ASKED_CATEGORY"
    7.81 -			echo "================================================================================"
    7.82 +			horizontal_line
    7.83  			for pkg in $WOK/*
    7.84  			do
    7.85  				[ ! -f $pkg/receipt ] && continue
    7.86 @@ -2741,13 +2753,13 @@
    7.87  					packages=$(($packages+1))
    7.88  				fi
    7.89  			done
    7.90 -			echo "================================================================================"
    7.91 +			horizontal_line
    7.92  			echo -e "$packages packages in category $ASKED_CATEGORY.\n"
    7.93  		else
    7.94  			# By default list all packages and version.
    7.95  			echo ""
    7.96  			echo -e "\033[1mList of packages in the wok\033[0m"
    7.97 -			echo "================================================================================"
    7.98 +			horizontal_line
    7.99  			for pkg in $WOK/*
   7.100  			do
   7.101  				[ ! -f $pkg/receipt ] && continue
   7.102 @@ -2757,7 +2769,7 @@
   7.103  				echo -e "\033[42G $CATEGORY"
   7.104  				packages=$(($packages+1))
   7.105  			done
   7.106 -			echo "================================================================================"
   7.107 +			horizontal_line
   7.108  			echo -e "$packages packages available in the wok.\n"
   7.109  		fi
   7.110  		;;
   7.111 @@ -2785,7 +2797,7 @@
   7.112  		if [ ! "$WANTED" = "" ]; then
   7.113  			echo "Wanted src : $WANTED"
   7.114  		fi
   7.115 -		echo "================================================================================"
   7.116 +		horizontal_line
   7.117  		echo ""
   7.118  	;;
   7.119  	check-log)
   7.120 @@ -2798,15 +2810,15 @@
   7.121  		else
   7.122  			echo ""
   7.123  			echo -e "\033[1mPackage process log for :\033[0m $PACKAGE"
   7.124 -			echo "================================================================================"
   7.125 +			horizontal_line
   7.126  			cat $LOG
   7.127 -			echo "================================================================================"
   7.128 +			horizontal_line
   7.129  			echo ""
   7.130  			if [ -s "$WOK/$PACKAGE/warning.txt" ]; then
   7.131  				echo -e "\033[1mCook warning(s) for :\033[0m $PACKAGE"
   7.132 -				echo "================================================================================"
   7.133 +				horizontal_line
   7.134  				cat "$WOK/$PACKAGE/warning.txt"
   7.135 -				echo "================================================================================"
   7.136 +				horizontal_line
   7.137  				echo ""
   7.138  			fi
   7.139  		fi
   7.140 @@ -2822,7 +2834,7 @@
   7.141  		fi
   7.142  		echo ""
   7.143  		echo -e "\033[1mSearch result for :\033[0m $2"
   7.144 -		echo "================================================================================"
   7.145 +		horizontal_line
   7.146  		list=`ls -1 $WOK | fgrep $2`
   7.147  		for pkg in $list
   7.148  		do
   7.149 @@ -2832,7 +2844,7 @@
   7.150  			echo -e "\033[42G $CATEGORY"
   7.151  			packages=$(($PACKAGEs+1))
   7.152  		done
   7.153 -		echo "================================================================================"
   7.154 +		horizontal_line
   7.155  		echo "$packages packages found for : $2"
   7.156  		echo ""
   7.157  	;;
   7.158 @@ -3075,7 +3087,7 @@
   7.159  		# Interactive mode, asking and seding.
   7.160  		if [ "$3" = "--interactive" ]; then
   7.161  			echo "Entering interactive mode..."
   7.162 -			echo "================================================================================"
   7.163 +			horizontal_line
   7.164  			echo "Package       : $PACKAGE"
   7.165  			# Version.
   7.166  			echo -n "Version       : " ; read anser
   7.167 @@ -3110,7 +3122,7 @@
   7.168  				echo -n "Creating the description.txt file..."
   7.169  				echo "" > description.txt && status
   7.170  			fi
   7.171 -			echo "================================================================================"
   7.172 +			horizontal_line
   7.173  			echo ""
   7.174  		fi
   7.175  	;;
   7.176 @@ -3198,7 +3210,7 @@
   7.177  		get_tazwok_config
   7.178  		echo ""
   7.179  		echo "List of maintainers for: $WOK"
   7.180 -		echo "================================================================================"
   7.181 +		horizontal_line
   7.182  		touch /tmp/slitaz-maintainers
   7.183  		for pkg in $WOK/*
   7.184  		do
   7.185 @@ -3208,7 +3220,7 @@
   7.186  				echo "$MAINTAINER"
   7.187  			fi
   7.188  		done
   7.189 -		echo "================================================================================"
   7.190 +		horizontal_line
   7.191  		echo "Maintainers: `cat /tmp/slitaz-maintainers | wc -l`"
   7.192  		echo ""
   7.193  		# Remove tmp files
   7.194 @@ -3222,7 +3234,7 @@
   7.195  			exit 1
   7.196  		fi
   7.197  		echo "Maintainer packages"
   7.198 -		echo "================================================================================"
   7.199 +		horizontal_line
   7.200  		for pkg in $WOK/*
   7.201  		do
   7.202  			. $pkg/receipt
   7.203 @@ -3231,7 +3243,7 @@
   7.204  				packages=$(($PACKAGEs+1))
   7.205  			fi
   7.206  		done
   7.207 -		echo "================================================================================"
   7.208 +		horizontal_line
   7.209  		echo "Packages maintained by $2: $PACKAGEs"
   7.210  		echo ""
   7.211  	;;
   7.212 @@ -3384,9 +3396,9 @@
   7.213  			if [ -s $i ]; then
   7.214  				echo ""	
   7.215  				echo -e "\033[1m$i\033[0m"
   7.216 -				echo "================================================================================"
   7.217 +				horizontal_line
   7.218  				cat $i
   7.219 -				echo "================================================================================"
   7.220 +				horizontal_line
   7.221  				echo ""
   7.222  			fi
   7.223  		done