'petspec' improved

/usr/bin/petspec is a little GUI application that can be run directly but is also called from 'dir2pet' -- the latter is our utility for converting a directory into a PET package.

I have put question-mark buttons alongside some of the fields in the GUI, to explain each field.

In particular, the dependencies box has help, which explains how to enter the dependencies of the package, in particular how to include versioning as introduced here:
http://bkhome.org/blog/?viewDetailed=02365
http://bkhome.org/blog/?viewDetailed=02363


Posted on 25 Jul 2011, 18:10


Comments:

Posted on 26 Jul 2011, 14:23 by technosaurus
how to get pet.spec _only_
IIRC you previously asked how to get pet.specs for each package from the repository
it just hit me how to improve the speed of this process
just do the tarball creation in 2 steps in dir2pet and other pet creators like this:
tar -cf $PKG.tar $PKG/pet.specs

tar -uf $PKG.tar $PKG

... add checksum, compression, rename ...

then to get the petspecs without having to waste your monthly limit

echo downloading $REPO_DIR/$PKG$EXT

wget -q -O - $REPO_DIR/$PKG$EXT |gunzip |tar -x $PKG/pet.specs 2>/dev/null &
PIDOFTAR=$!
while ([ ! -e ./$PKG/pet.specs ]) do
sleep .1
done
kill $PIDOFTAR
echo done


if older packages remain in the repo, the code will still work, but wget will reach 100% b/c pet.specs somehow ends up being the last file added to the tarball


Posted on 26 Jul 2011, 14:46 by technosaurus
./dir vs. dir
btw previous code may need an additional ./$PKG/pet.specs after $PKG/pet.specs

I almost forgot that the pets/tarballs could have that minor difference (some are top directories in the tarball are ./pkg_name/... while others are just pkg_name/...)

perhaps once dir has been verified the ./ could be removed for uniformity
cd $DIR/../
DIR=${DIR##*\/}