You are not logged in.

#1 2012-01-31 08:45:11

garyvdm
Member
Registered: 2011-09-22
Posts: 7

Pacman parallel downloads, powerpill source.

Hi all.

I'm working a pacman utill to do peer to peer package sharing. Source code is here: https://github.com/psi-neamf/pacshare, but I want to harden it a bit before I officially release and anounce it, and put in on aur.

It's implemented as a pacman XferCommand. I have some ideas for how I can  improve it if I could have 1 process downloading all package in a sync opperation.  I have been looking at writing a patch for pacman to allow for this (pacman bug.)

Here is my question:  I am also intrested in how powerpill worked. I'm looking for the source code. I downloaded the source code from http://xyne.archlinux.ca/src/powerpill- … 0.1.tar.gz , but it seems incomplete. The tree of the tar I downloaded looks like this:

├── bash_completion
├── COPYING
├── man
│   └── powerpill.1.gz
├── powerpill
└── powerpill.conf

The powerpill file is just a wrapper for Xyne::Arch::Powerpill; So I think that there is some code missing. Anyone know where I can find it?

Offline

#2 2012-01-31 09:54:45

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Pacman parallel downloads, powerpill source.

https://aur.archlinux.org/packages.php? … _Search=Go - most likely perl-xyne-arch and perl-xyne-common.

EDIT: I recall Xyne saying the reason he was dropping the project was because it was terribly coded and a hack, may not be the best example for you to look at.... why not ask him directly?

Last edited by ngoonee (2012-01-31 09:55:20)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2012-01-31 10:56:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,497
Website

Re: Pacman parallel downloads, powerpill source.

Essentially it did "pacman -Sy" followed by "pacman -Sp $(pacman -Qqu)" to get a list of urls.  Then it passed them to a download program and downloaded them to the cache directory and calls "pacman -Su"...  Easy!

Offline

Board footer

Powered by FluxBB