Page 1 of 1

Petget enhanced and many version updates

Posted: Sat 26 Sep 2009, 21:59
by technosaurus
I have patched petget to use xz compressed files - using the extension .pxt to differentiate them (it isn't really that necessary to have a separate extension, but I didn't want users without the patch to be befuddled to why their pet wouldn't install)

Smaller packages will reduce bandwidth usage and server space, shorten download times and still work as fast as the gzip style pet packages. (creating the pet takes slightly longer but nowhere near bzip times)

Still not 100% complete - need to add a mime type etc... for .pxt so that petget automatically handles them.

to test it the packages are in:
http://www.puppylinux.asia/members/T/444/ puppy:linux

You will probably need the tar and xz pet as well unless you have the latest stable versions of both (not included in any Puppy yet)
their are standard pets as well for comparison

Posted: Sat 26 Sep 2009, 23:41
by technosaurus
Here is a patch for woof - since that is the only place you can get this (4.3) version of petget

to apply patches see this tutorial
http://stephenjungels.com/jungels.net/a ... nutes.html

Posted: Thu 21 Nov 2013, 23:19
by 01micko
techno, can you repost the packages/patches, the links here are broken.

EDIT1
It's ok, I did it anyway, but I left the .pet extension as this is how kirk and jamesbond did it in FatDog. Probably a bunch of changes in petget since your patches anyway. I'll post 'em soon.

EDIT2
The changes were made to woof-CE testing branch https://github.com/puppylinux-woof-CE/w ... ee/testing

Posted: Fri 22 Nov 2013, 04:42
by Karl Godt
WOW ! :)

Did not knew it before !

Here is my STILL MUCH TODO attempt : Add support for other compressions than gzip for dotPets from year 2012 .

Posted: Fri 22 Nov 2013, 10:41
by SFR
WOW++! Just a few days ago I also did something similar (just for myself, selfishly :wink: ).
I, too, didn't know the idea goes back to 2009 (thought FatDog was first) and haven't seen Karl's attempt.

@Mick: I tried your versions and just a couple of things to report:
1. One spot is missed in installpkg.sh, line 260: rm -f $DLPKG_MAIN.tar.gz 2>/dev/null (I overlooked it too at first).
2. I'd suggest to use 'file -b' and/or 'grep -w' (I used both) in installpkg.sh and pet2tgz, because in case of gzip'ed .pet that is named, for example: "tuxzone-1.0.pet" we'll get false positive on 'xz' compression.
(should I post the diffs in woof-ce thread for these tiny changes..?)

Great, xz support at last! :D

Greetings!

Posted: Fri 22 Nov 2013, 10:55
by 01micko
Ok thanks for line 260, changed gz to ${EXT}

and for the other .. what about?

Code: Select all

file -b "$1" | grep -q "^xz" && EXT=xz || EXT=gz #131122
(of course replace $1 with $DLPKG_BASE in the other one :wink: )

Posted: Fri 22 Nov 2013, 11:14
by SFR
Yep, works for me. 8)

Code: Select all

# file tuxzone-1.0.pet 
tuxzone-1.0.pet: gzip compressed data, was "tuxzone-1.0.tar", from Unix, last modified: Fri Nov 22 12:12:43 2013, max compression
# file -b tuxzone-1.0.pet | grep -q "^xz" && echo xz || echo gz
gz
# 
# file rox-clock-1.pet 
rox-clock-1.pet: xz compressed data
# file -b rox-clock-1.pet | grep -q "^xz" && echo xz || echo gz
xz
# 
Thanks &
Greetings!