I'm working on some tweaks to the portion of my src2pkg program which creates pet packages. It can create packages for both old-style puppyies or those using the woof build system. I need to know how to determine (from a running script) if the running version is a woof build or old-style. I used to know how to do this, but seem to have forgotten.
IIRC, it had something to do with the PUP_SPECS file or maybe it was a file in /root/.packages. anyway, woof builds contain a file which was not in earlier versions. Can some sharp someone tell me how to do this. This is so that src2pkg can create the proper *.specs file and package database entries.

/etc/DISTRO_SPECS must have been what I was thinking of. Hopefully more clarification or confirmation will come through. It may be that 2.14X has integrated the newer version of PPM, so it should be treated as a newer version. The distinction I'm after is the type of package database which is used.

older puppies had a three-digit version number in /etc/puppyversion, while woof-built puppies have version info in /etc/DISTRO_SPECS.

Puppy214X has both these files, but that's probably an exception.

hth /
MHHP

Checking distro specs, pup version from ther sfs (if found) and /etc/puppyversion combined should be enough... but there are always exceptions with their own mix of these settings...
(214X, Puplite, Fluppy etc)_________________Akita Linux, VLC-GTK, Pup Search, Pup File Search

Thinking a bit more:
I suppose the file root/.packages/woof-installed-packages would be unique to woof-built puppies, it's created in the woof-build process.

hth /
MHHP

This may be irrelevant information for your purposes, but I believe any Puppy that has DISTRO_SPECS, that has been also remastered using the remasterpup2 script (newer versions) willl have the woof-installed-packages file, regardless of its puppy version...

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum