Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 13:20
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Next Puppy Development » 5.x » Bugs (5.x dev)
Not able to add repository to PPM in dpup
Moderators: BarryK, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
shankargopal

Joined: 03 Dec 2005
Posts: 295

PostPosted: Fri 02 Oct 2009, 08:50    Post subject:  Not able to add repository to PPM in dpup  

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 Smile, I changed the lines in DISTRO_PKGS_SPECS to read:

Code:

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/debian/dists/lenny/main/binary-i386/Packages|Packages-debian-lenny-enlightenment-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!
Back to top
View user's profile Send private message 
shankargopal

Joined: 03 Dec 2005
Posts: 295

PostPosted: Fri 02 Oct 2009, 12:02    Post subject:  

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:

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 .
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Next Puppy Development » 5.x » Bugs (5.x dev)
Jump to:  

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


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0508s ][ Queries: 12 (0.0081s) ][ GZIP on ]