Not able to add repository to PPM in dpup

This is for bugs in a version of Puppy 5.x that is still under development. If you have bugs for a released version of Puppy, please post them in the forum's main Bugs section, not here. Bugs are when a program does not function as intended. Usability issues are not bugs.
Post Reply
Message
Author
shankargopal
Posts: 295
Joined: Sat 03 Dec 2005, 11:30

Not able to add repository to PPM in dpup

#1 Post by shankargopal »

Not sure if this is a dpup bug or a PPM bug, but thought best place to post it is here...

Just as an experiment, was trying to add the Enlightenment DR17 lenny repository to PPM in dpup 476j (the most recent version, 477beta1 has not come out yet). After rereading the README-add-repo.htm file several times :), I changed the lines in DISTRO_PKGS_SPECS to read:

Code: Select all

PKG_DOCS_DISTRO_COMPAT="ftp.uwa.edu.au/mirrors/linux/|ftp://ftp.uwa.edu.au/mirrors/linux/debian/dists/${DISTRO_COMPAT_VERSION}/main/binary-i386/Packages.bz2|Packages-debian-${DISTRO_COMPAT_VERSION}-main ftp.uwa.edu.au/mirrors/linux/|ftp://ftp.uwa.edu.au/mirrors/linux/debian/dists/${DISTRO_COMPAT_VERSION}/non-free/binary-i386/Packages.bz2|Packages-debian-${DISTRO_COMPAT_VERSION}-non-free ftp.uwa.edu.au/mirrors/linux/|ftp://ftp.uwa.edu.au/mirrors/linux/debian/dists/${DISTRO_COMPAT_VERSION}/contrib/binary-i386/Packages.bz2|Packages-debian-${DISTRO_COMPAT_VERSION}-contrib packages.enlightenment.org|http://packages.enlightenment.org/debian/dists/lenny/main/binary-i386/Packages|Packages-debian-lenny-enlightenment-main"

REPOS_DISTRO_COMPAT="ftp.uwa.edu.au/mirrors/linux|ftp://ftp.uwa.edu.au/mirrors/linux/debian|Packages-debian-${DISTRO_COMPAT_VERSION}-* mirrors.kernel.org|http://mirrors.kernel.org/debian|Packages-debian-${DISTRO_COMPAT_VERSION}-* ftp.de.debian.org|http://ftp.de.debian.org/debian|Packages-debian-${DISTRO_COMPAT_VERSION}-* ftp.au.debian.org|http://ftp.au.debian.org/debian|Packages-debian-${DISTRO_COMPAT_VERSION}-* packages.enlightenment.org|http://packages.enlightenment.org/debian|Packages-debian-lenny-enlightenment-main"
Or, in short, added "packages.enlightenment.org|http://packages.enlightenment.org/debia ... nment-main" to PKGS_DOCS_DISTRO_COMPAT and the packages directory to REPOS_DISTRO_COMPAT. When I then ask PPM to update the repos, it reaches the Enlightenment one and downloads the Packages file. Immediately after downloading the Packages file, the wget window closes and nothing seems to happen - the usual "processing package database" does not appear. Any idea what is going wrong? Can't even see any error message because it closes so fast. Could go into the code and make rxvt not close, so I can see the error message, but thought I would run it by here first.

Thanks!

shankargopal
Posts: 295
Joined: Sat 03 Dec 2005, 11:30

#2 Post by shankargopal »

Ok, managed to fix that bit. The 0setup script was expecting a bz2 file when the repository only provided uncompressed and gzipped package lists. So added the following kludge to 0setup:

Code: Select all

xDLFILE="`basename $DLFILE .bz2`"
UNZIP="bunzip2"
echo $DLFILE | grep gz && UNZIP="gunzip" && xDLFILE="`basename $DLFILE .gz`"
# bunzip2 $DLFILE
$UNZIP $DLFILE
around line 94 in 0setup. Then changed DISTRO_PKGS_SPECS to point to the Packages.gz file, and, surprisingly enough, it worked.

Now I have two other problems, though. One of them is that, when I try to download packages, the packages.enlightenment.org server is not one of the download options listed, even though it's included in REPOS_DISTRO_COMPAT. The other problem is with dependency resolution, which I've described in a different thread.

Post Reply