Recently I took a look at /usr/local/petget/downloadpkgs.sh in Drakepup to see what I could do and here it is:
Code: Select all
#rxvt -title "Puppy Package Manager: download" -bg orange -fg black -geometry 80x10 -e wget ${DOWNLOADFROM}/${ONEFILE}
download_file ${DOWNLOADFROM}/${ONEFILE}
DLPKG="`basename $ONEFILE`" #jrb 13jul11
PUPVER=`grep DISTRO_FILE_PREFIX /etc/DISTRO_SPECS | cut -d "'" -f 2` #jrb 17jul11
mkdir /mnt/home/${PUPVER}_download #jrb 13jul11
cp /root/$DLPKG /mnt/home/${PUPVER}_download #jrb 13jul11
This will create a folder in /mnt/home with the name of the puppy you are using followed by "_download" and will copy the package you are installing into that folder.
It wouldn't surprise me if there wasn't an easier way that I am overlooking, so if you know one please let me know, but this is working well so far.
I am attaching a .pet of my modified file if you wish to try it. The usual denial of reponsibility applies.