2011-04-03

Slitaz -- tazpkg

tazpkg: remove trailing / in package name ??

Env: slitaz-cooking.iso 2011-Mar-28 22:03:50
http://mirror.slitaz.org/iso/cooking/slitaz-cooking.iso

UPDATA:20110411
http://scn.slitaz.org/2011/04/tazpkg-release-4-6/
Tazpkg release 4.6

18:58 in Devel News by pankso

Here at SliTaz we always working on improving and fixing existing tools as well as inovative applications. Today we release our package manager stamped with 4.6.*, we will probably have minor bug since we made some big changes.
[..]


http://pkgs.slitaz.org/cooking/base-system.html#tazpkg
[..]
tazpkg

Version : 4.6.1
Short desc : SliTaz packages manager.
Web site : http://www.slitaz.org/

Depends : busybox gettext-base libtaz
====

UPDATE:20110407

http://labs.slitaz.org/issues/472
Bug #472
[cooking] Tazpkg integration with PCManFM

Added by Eric Joseph-Alexandre 7 days ago.
[..]

Description

Unpack and repack commands don't work any more with PCManFM.


http://labs.slitaz.org/issues/471
Bug #471
[cooking] tazpkg-install failed

Added by Eric Joseph-Alexandre 7 days ago.

[..]
Description

Same issue then #461

http://labs.slitaz.org/issues/461
Feature #461
tazpkg recompress bug on absolute/relative path

Added by Frederic Guilbault about 1 month ago. Updated 7 days ago.
[..]

Description

hi,

i was testing tazpkg on the experiental slitaz and i have found that

root@slitaz:/home# tazpkg recompress /root/apache-2.2.17
Unable to find: /home//root/apache-2.2.17

"tazpkg recompress" shoud read the path as absolute but "Unable to find" is locking for a relative path



----

1.
root@slitaz:~# tazpkg extract /tmp/xz-5.0.1.tazpkg

Unable to find: /root//tmp/xz-5.0.1.tazpkg

2.
root@slitaz:~# tazpkg list | grep tazpkg
tazpkg 4.2.5 base-system

3.
update tazpkg-4.2.6.tazpkg 2011-Apr-01 16:04:57
root@slitaz:~# tazpkg extract /tmp/xz-5.0.1.tazpkg

Unable to find: /root//tmp/xz-5.0.1.tazpkg

4.
http://hg.slitaz.org/tazpkg/rev/87e87b5ee7e2
tazpkg changeset 427:87e87b5ee7e2
tazpkg: remove trailing / in package name
author Pascal Bellard
date Tue Mar 01 22:24:48 2011 +0100 (4 weeks ago ago)
parents 3a8fccb4e5f7
children 0bc0cd627417
files tazpkg
line diff

1.1 --- a/tazpkg Tue Mar 01 18:42:38 2011 +0100
1.2 +++ b/tazpkg Tue Mar 01 22:24:48 2011 +0100
1.3 @@ -41,14 +41,15 @@
1.4 # Initialize some variables to use words rather than numbers for functions
1.5 # and actions.
1.6 COMMAND=$1
1.7 -if [ -f "$2" ]; then
1.8 +PACKAGE=${2%/}
1.9 +PACKAGE_FILE="$PWD/$PACKAGE"
1.10 +if [ -f "$PACKAGE" ]; then
1.11 # Set pkg basename for install, extract
1.12 - PACKAGE=$(basename ${2%.tazpkg} 2>/dev/null)
1.13 + PACKAGE=$(basename ${PACKAGE%.tazpkg} 2>/dev/null)
1.14 else
1.15 # Pkg name for remove, search and all other cmds
1.16 - PACKAGE=${2%.tazpkg}
1.17 + PACKAGE=${PACKAGE%.tazpkg}
1.18 fi
1.19 -PACKAGE_FILE="$PWD/$2"
1.20 TARGET_DIR=$3
1.21 TOP_DIR=`pwd`
1.22 TMP_DIR=$tmp/$RANDOM

.