You are not logged in.

#26 2011-04-24 17:52:38

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

Try pacserve 2011.04.24.3-1. I've reworked localhost tracking. It should now detect direct auto-recursion in all cases regardless of the interface used (e.g. localhost, 192.168.x.x, etc). I don't understand why it was recursing in your case but I have probably made incorrect assumptions about how the socket module and HTTP server address binding work.

With the same setup as you describe, I get this:

curl

> curl -v http://localhost:15678/request/core/x86_64/rpcbind-0.2.0-3-x86_64.pkg.tar.xz
* About to connect() to localhost port 15678 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 15678 (#0)
> GET /request/core/x86_64/rpcbind-0.2.0-3-x86_64.pkg.tar.xz HTTP/1.1
> User-Agent: curl/7.21.4 (x86_64-unknown-linux-gnu) libcurl/7.21.4 OpenSSL/1.0.0d zlib/1.2.5
> Host: localhost:15678
> Accept: */*
> 
< HTTP/1.1 303 See Other
< Server: Pacserve/1.1
< Date: Sun, 24 Apr 2011 17:44:38 GMT
< Location: ftp://ftp.archlinux.org/core/os/x86_64/rpcbind-0.2.0-3-x86_64.pkg.tar.xz
< Content-Length: 0
< 
* Connection #0 to host localhost left intact
* Closing connection #0

pacserve

> pacserve 
Starting Pacserve...
  address: all interfaces
  port: 15678
  pid: 10860
Press <Ctrl-C> to exit.

[2011-04-24 19:46:15] 127.0.0.1:34306 querying ftp://ftp.archlinux.org/core/os/x86_64/rpcbind-0.2.0-3-x86_64.pkg.tar.xz
[2011-04-24 19:46:16] 127.0.0.1:34306 redirecting to ftp://ftp.archlinux.org/core/os/x86_64/rpcbind-0.2.0-3-x86_64.pkg.tar.xz
[2011-04-24 19:46:16] 127.0.0.1:34306 "GET /request/core/x86_64/rpcbind-0.2.0-3-x86_64.pkg.tar.xz HTTP/1.1" 303 -


If you still get recursion, try "pacserve -b localhost..." just to see if that prevents it.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#27 2011-04-24 22:44:22

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: pacserve - easily share Pacman packages between computers

I do still see the recursion with 2011.04.24.3-1. Doing "pacserve -b localhost" does, in fact, prevent it.

I then added some extra debug logging to pacserve, and found that self.server.localhosts == ['localhost.localdomain', '128.2.126.84'] in MyHandler.query_mirror, rather than including the short name 'localhost' or, for that matter, '127.0.0.1', or 'akherou.cc.cmu.edu', which is what 128.2.126.84 resolves to. This led me to try 'localhost.localdomain' in my mirrorlist instead of just 'localhost', and indeed, that works just fine.

So, I have a workaround, if nothing else, and hopefully you have a lead on understanding what's going on here.

I have HOSTNAME="akherou" in rc.conf due to the domain name changing depending on what network I'm attached to. That produces this kind of live hostname config:

root@akherou:/usr/bin # hostname
akherou
root@akherou:/usr/bin # hostname --short
akherou
root@akherou:/usr/bin # hostname --fqdn
akherou.cc.cmu.edu

I wondered if something about this (short name as default) confused some Python networking code, so I tried setting the long name as hostname instead, but that changed nothing as far as pacserve is concerned.

Offline

#28 2011-04-25 00:39:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

I've updated again with a slightly different approach. Rather than try to resolve everything to a single address, I've just dumped all names, aliases and ip addresses for the localhost into a set. I've done the same thing with the server's address.

If that doesn't work, post the output of the following script:

#!/usr/bin/env python2

import socket

for foo in ('localhost', 'localhost.localdomain', 'akherou.cc.cmu.edu', 'akherou'):
  name, aliases, ips = socket.gethostbyname_ex(foo)
  s = set([name] + aliases + ips)
  print s

Play around with that too to see if it's able to resolve the different addresses that it's likely to encounter.


Also post the output of running pacserve with the following patch applied (save it as "debug.patch", copy pacserve to the same directory, then run "patch < debug.patch")

--- pacserve
+++ pacserve.debug
@@ -64,6 +64,7 @@
 try:
   name, aliases, ips = socket.gethostbyname_ex('localhost')
   LOCALHOSTS = set([name] + aliases + ips)
+  print "LOCALHOSTS:", LOCALHOSTS
 except socket.gaierror as e:
   sys.stderr.write('error: failed to resolve "localhost": %s\n' % (e.strerror))
   if e.errno == -2:
@@ -309,9 +310,10 @@
       name, aliases, ips = socket.gethostbyname_ex(self.address_string())
       addresses = set([name] + aliases + ips)
       self.server.localhosts |= addresses
+      print "Added %s to server.localhosts: %s" % (addresses, self.server.localhosts)
     except socket.gaierror:
       self.server.localhosts.add(self.address_string())
-
+      print "Added %s to server.localhosts: %s" % (self.address_string(), self.server.localhosts)
     request_url = urlparse.urlparse(self.path)
     path = request_url.path.strip('/')
 
@@ -789,6 +791,7 @@
   try:
     name, aliases, ips = socket.gethostbyname_ex(server.server_name)
     server.localhosts = set([name] + aliases + ips)
+    print "Initial server.localhosts:", server.localhosts
   except socket.gaierror as e:
     sys.stderr.write('error: host lookup for "%s" failed: %s' % (server.server_name, e))
     if e.errno == -2:

Post the top of the output and a few lines from the recursion loop.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#29 2011-04-25 02:18:11

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

I've updated again with a slightly different approach. Rather than try to resolve everything to a single address, I've just dumped all names, aliases and ip addresses for the localhost into a set. I've done the same thing with the server's address.

pacserve 2011.04.25.2-1 works just fine for me. Works well in multicast mode with another of my machines, also.

Offline

#30 2011-04-25 19:51:01

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

ataraxia wrote:

pacserve 2011.04.25.2-1 works just fine for me. Works well in multicast mode with another of my machines, also.

Good... I was running out of ideas. smile


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#31 2011-04-25 22:33:22

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

@Ravenman

edit
It should be fixed now. I had assumed that all database files were named "*.db".

Incidentally, what version of pacman are you using?

I'm using these program versions:

[root@testserver ~]# pacman -Q python-xynehttpserver pacserve pacman
python-xynehttpserver 2011.04.19.1-1
pacserve 2011.04.25.2-1
pacman 3.5.2-1
[root@testserver ~]#

But I can't update from workstations yet:

Client side messages:

[root@testworkstation ~]# pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from 192.168.2.2 : Not Found
error: failed to update core (Not Found)
error: failed retrieving file 'extra.db.tar.gz' from 192.168.2.2 : Not Found
error: failed to update extra (Not Found)
error: failed retrieving file 'community.db.tar.gz' from 192.168.2.2 : Not Found
error: failed to update community (Not Found)
error: failed to synchronize any databases
[root@testworkstation ~]#

Server side messages:

[root@testserver ~]# pacserve 
Starting Pacserve...
  address: all interfaces
  port: 15678
  pid: 1812
Press <Ctrl-C> to exit.

[2011-04-25 17:11:35] 192.168.2.3:48331 querying ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
[2011-04-25 17:11:36] 192.168.2.3:48331 "HEAD /request/core/i686/core.db.tar.gz HTTP/1.1" 404 -
[2011-04-25 17:11:36] 192.168.2.3:48332 querying ftp://ftp.archlinux.org/extra/os/i686/extra.db.tar.gz
[2011-04-25 17:11:36] 192.168.2.3:48332 "HEAD /request/extra/i686/extra.db.tar.gz HTTP/1.1" 404 -
[2011-04-25 17:11:36] 192.168.2.3:48333 querying ftp://ftp.archlinux.org/community/os/i686/community.db.tar.gz
[2011-04-25 17:11:37] 192.168.2.3:48333 "HEAD /request/community/i686/community.db.tar.gz HTTP/1.1" 404 -

I tried update at the server and everything works fine hmm

Last edited by Ravenman (2011-04-25 22:35:23)

Offline

#32 2011-04-26 03:15:47

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

Ravenman wrote:

I tried update at the server and everything works fine hmm

If it works on the server then it should work on the client. The source of the connection does not affect the way it queries mirrors.

What was the output when it worked?


I can't reproduce the 404 errors. Pacman updates as expected when using pacserve on another system here, and the output from the server is normal:

Starting Pacserve...
  address: all interfaces
  port: 15678
  pid: 18360
Press <Ctrl-C> to exit.

[2011-04-25 20:48:49] 192.168.1.3:45173 querying ftp://ftp.archlinux.org/core/os/i686/core.db
[2011-04-25 20:48:50] 192.168.1.3:45173 redirecting to ftp://ftp.archlinux.org/core/os/i686/core.db
[2011-04-25 20:48:50] 192.168.1.3:45173 "HEAD /request/core/i686/core.db HTTP/1.1" 303 -
[2011-04-25 20:48:52] 192.168.1.3:45175 querying ftp://ftp.archlinux.org/core/os/i686/core.db
[2011-04-25 20:48:52] 192.168.1.3:45175 redirecting to ftp://ftp.archlinux.org/core/os/i686/core.db
[2011-04-25 20:48:52] 192.168.1.3:45175 "GET /request/core/i686/core.db HTTP/1.1" 303 -
[2011-04-25 20:48:54] 192.168.1.3:45177 querying ftp://ftp.archlinux.org/extra/os/i686/extra.db
[2011-04-25 20:48:55] 192.168.1.3:45177 redirecting to ftp://ftp.archlinux.org/extra/os/i686/extra.db
[2011-04-25 20:48:55] 192.168.1.3:45177 "HEAD /request/extra/i686/extra.db HTTP/1.1" 303 -
[2011-04-25 20:48:57] 192.168.1.3:45178 querying ftp://ftp.archlinux.org/extra/os/i686/extra.db
[2011-04-25 20:48:58] 192.168.1.3:45178 redirecting to ftp://ftp.archlinux.org/extra/os/i686/extra.db
[2011-04-25 20:48:58] 192.168.1.3:45178 "GET /request/extra/i686/extra.db HTTP/1.1" 303 -
[2011-04-25 20:49:08] 192.168.1.3:45180 querying ftp://ftp.archlinux.org/community/os/i686/community.db
[2011-04-25 20:49:09] 192.168.1.3:45180 redirecting to ftp://ftp.archlinux.org/community/os/i686/community.db
[2011-04-25 20:49:09] 192.168.1.3:45180 "HEAD /request/community/i686/community.db HTTP/1.1" 303 -
[2011-04-25 20:49:11] 192.168.1.3:45181 querying ftp://ftp.archlinux.org/community/os/i686/community.db
[2011-04-25 20:49:12] 192.168.1.3:45181 redirecting to ftp://ftp.archlinux.org/community/os/i686/community.db
[2011-04-25 20:49:12] 192.168.1.3:45181 "GET /request/community/i686/community.db HTTP/1.1" 303 -

[2011-04-25 20:57:25] 192.168.1.3:34534 querying ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
[2011-04-25 20:57:26] 192.168.1.3:34534 redirecting to ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
[2011-04-25 20:57:26] 192.168.1.3:34534 "HEAD /request/core/i686/core.db.tar.gz HTTP/1.1" 303 -

Notice the "core.db.tar.gz" query in the last 3 lines.


What's the output of running the following commands on the server?
What about running the second one on the client?

curl -I http://localhost:15678/request/core/i686/core.db.tar.gz
curl -I http://192.168.2.2:15678/request/core/i686/core.db.tar.gz


Have you tried using a different mirror? If not, try an HTTP mirror just to see if it works.

Do you have any strange outbound firewall or proxy settings?

You can also try running this script on the server and the client:

#!/usr/bin/env python2

import ftplib

host = 'ftp.archlinux.org'
path = '/core/os/i686/core.db.tar.gz'

ftp = ftplib.FTP(host)
ftp.login()
ftp.set_pasv(True)
try:
  ftp.sendcmd('MDTM %s' % path)
  print "%s appears to exist" % path
except ftplib.error_perm as e:
  print "%s does not appear to exist" % path
ftp.quit()

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#33 2011-04-26 05:12:30

denisfalqueto
Member
From: ES, Brazil
Registered: 2006-03-24
Posts: 197

Re: pacserve - easily share Pacman packages between computers

Xyne,

First, thanks for the new project (I always liked and wanted to use pkgd, but didn't never have a real oportunity).

But it seems you are having the most problems with a feature that Avahi could give you for free. Have you considered implementing an Avahi based package server? It would manage the multicast and publishing part for you.

Maybe you don't want to have Avahi as a dependency. In that case, nevermind smile. I'm just saying because Avahi just have dbus as the runtime dependency (the others are just libraries).

I'm still trying to wrap my head around Avahi and python-dbus interfaces, so I could send a patch. But don't hold your breath...

Last edited by denisfalqueto (2011-04-27 15:50:25)


Satisfied users don't rant, so you'll never know how many of us there are.

Offline

#34 2011-04-26 15:11:25

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

What's the output of running the following commands on the server?
What about running the second one on the client?

curl -I http://localhost:15678/request/core/i686/core.db.tar.gz
curl -I http://192.168.2.2:15678/request/core/i686/core.db.tar.gz

Server side messages:

[root@testserver ~]# pacserve 
Starting Pacserve...
  address: all interfaces
  port: 15678
  pid: 3344
Press <Ctrl-C> to exit.

[2011-04-26 08:54:01] 127.0.0.1:55202 querying ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
[2011-04-26 08:54:02] 127.0.0.1:55202 "HEAD /request/core/i686/core.db.tar.gz HTTP/1.1" 404 -
[2011-04-26 08:55:25] 192.168.2.3:39624 querying ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
[2011-04-26 08:55:26] 192.168.2.3:39624 "HEAD /request/core/i686/core.db.tar.gz HTTP/1.1" 404 -

Client side messages:

[root@testworkstation ~]# curl -I http://192.168.2.2:15678/request/core/i686/core.db.tar.gz
HTTP/1.1 404 Not Found
Server: Pacserve/1.1
Date: Tue, 26 Apr 2011 13:55:26 GMT
Content-Type: text/plain; charset=UTF-8
Content-Length: 9
Xyne wrote:

Have you tried using a different mirror? If not, try an HTTP mirror just to see if it works.

Do you have any strange outbound firewall or proxy settings?

I tried with one HTTP mirror and the system shows this:

Client side messages:

[root@testworkstation ~]# pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from 192.168.2.2 : Temporary Redirect
error: failed to update core (Temporary Redirect)
error: failed retrieving file 'extra.db.tar.gz' from 192.168.2.2 : Temporary Redirect
error: failed to update extra (Temporary Redirect)
error: failed retrieving file 'community.db.tar.gz' from 192.168.2.2 : Temporary Redirect
error: failed to update community (Temporary Redirect)
error: failed to synchronize any databases

Server side messages:

[2011-04-26 09:40:58] 192.168.2.3:53172 querying http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
[2011-04-26 09:40:58] 192.168.2.3:53172 redirecting to http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
[2011-04-26 09:40:58] 192.168.2.3:53172 "HEAD /request/core/i686/core.db.tar.gz HTTP/1.1" 307 -
[2011-04-26 09:40:58] 192.168.2.3:53173 querying http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
[2011-04-26 09:40:58] 192.168.2.3:53173 redirecting to http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
[2011-04-26 09:40:58] 192.168.2.3:53173 "HEAD /request/extra/i686/extra.db.tar.gz HTTP/1.1" 307 -
[2011-04-26 09:40:58] 192.168.2.3:53174 querying http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
[2011-04-26 09:40:58] 192.168.2.3:53174 redirecting to http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
[2011-04-26 09:40:58] 192.168.2.3:53174 "HEAD /request/community/i686/community.db.tar.gz HTTP/1.1" 307 -
Xyne wrote:

You can also try running this script on the server and the client:

Server side messages:

[researcher@testserver ~]$ ./updatest.sh 
host: convert UTF-8 textname to IDN encoding: prohibited character found
./updatest.sh: line 7: path: command not found
./updatest.sh: line 9: syntax error near unexpected token `('
./updatest.sh: line 9: `ftp = ftplib.FTP(host)'

Offline

#35 2011-04-27 12:31:53

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

@denisfalqueto
I definitely do not want avahi & dbus as dependencies. I want this to be pure Python and I'm using it as a learning opportunity. Besides, the multicast detection works as expected. Ravenman's problem seems to be between pacserve and mirror at ftp.archlinux.org, and I suspect that it's due to some system setting on his server.


@Ravenman
For some reason pacserve can't query the mirror at ftp.archlinux.org. Given that it works here with the same mirror, it must be due to some system setting on your server (the code is the same, the mirror is the same, the only thing that is different is your server and/or your network). Try using other FTP servers to see if any of them work. If not, just use an HTTP server until you figure it out.


Ravenman wrote:

Client side messages:

[root@testworkstation ~]# pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from 192.168.2.2 : Temporary Redirect
error: failed to update core (Temporary Redirect)
error: failed retrieving file 'extra.db.tar.gz' from 192.168.2.2 : Temporary Redirect
error: failed to update extra (Temporary Redirect)
error: failed retrieving file 'community.db.tar.gz' from 192.168.2.2 : Temporary Redirect
error: failed to update community (Temporary Redirect)
error: failed to synchronize any databases

Update to the latest version of libfetch. Dan/Toofishes posted a new version above for testing, and I seems that it's now in the repos too. The updated version correctly handles the Temporary Redirect status code.

*edit*
If it's not the same version as the one in the repos, then either install the package posted above using makepkg, or switch to using one of the XferCommands in pacman.conf until the bug is fixed upstream.



Ravenman wrote:
Xyne wrote:

You can also try running this script on the server and the client:

Server side messages:

[researcher@testserver ~]$ ./updatest.sh 
host: convert UTF-8 textname to IDN encoding: prohibited character found
./updatest.sh: line 7: path: command not found
./updatest.sh: line 9: syntax error near unexpected token `('
./updatest.sh: line 9: `ftp = ftplib.FTP(host)'

It's a python2 script, not a shell script. The extension doesn't matter but you obviously removed the shebang at the top of the script ("#!/usr/bin/env python2"). That isn't "just a comment", it also tells the shell how to interpret the script.

Just save the entire script to a file named "test.py" and run it with "python2 test.py".




And please make sure that you're using up-to-date versions of libfetch, python2, pacserve, pacman, and python-xynehttpserver.

Last edited by Xyne (2011-04-27 12:38:04)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#36 2011-04-27 15:56:11

denisfalqueto
Member
From: ES, Brazil
Registered: 2006-03-24
Posts: 197

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

@denisfalqueto
I definitely do not want avahi & dbus as dependencies. I want this to be pure Python and I'm using it as a learning opportunity. Besides, the multicast detection works as expected. Ravenman's problem seems to be between pacserve and mirror at ftp.archlinux.org, and I suspect that it's due to some system setting on his server.

I see. Thanks for the clarification.

I'll try to implement it with Avahi, though. It seems an interesting service. If it ever gets done, would you mind if I publish something based on your work?


Satisfied users don't rant, so you'll never know how many of us there are.

Offline

#37 2011-04-27 20:54:42

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

denisfalqueto wrote:

I'll try to implement it with Avahi, though. It seems an interesting service. If it ever gets done, would you mind if I publish something based on your work?

Not at all. It's GPL'd after all. wink


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#38 2011-04-28 14:18:18

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

Just save the entire script to a file named "test.py" and run it with "python2 test.py".

And please make sure that you're using up-to-date versions of libfetch, python2, pacserve, pacman, and python-xynehttpserver.

Server side messages:

[root@testserver ~]# python2 updatest.py 
/core/os/i686/core.db.tar.gz does not appear to exist
[root@testserver ~]# 

Packages version:

[root@testserver ~]# pacman -Q libfetch python2 pacserve pacman python-xynehttpserver
libfetch 2.33-3
python2 2.7.1-9
pacserve 2011.04.25.2-1
pacman 3.5.2-1
python-xynehttpserver 2011.04.19.1-1
[root@testserver ~]# 

Offline

#39 2011-04-28 16:27:16

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

@Ravenman
I am spending my own free time, of which I have little, to try to help you. I find it very demotivating when you ignore parts of my posts. If you are not going to make a real effort then I do not see why I should. I asked you to try other FTP server and to try HTTP servers. This information might have been helpful.

As it stands, there are two problems: client-side "Temporary Redirect" errors and FTP errors

"Temporary Redirect" errors
If you see these on the client when using Pacman, then you need to do one of the following:
* uncomment one of the XferCommands in pacman.conf until the libfetch package is updated
* install the patched version posted by Toofishes above... he is a Pacman developer and his packages can obviously be trusted

FTP errors
If the simple script does not work then I strongly suspect that the error is due to your server's network configuration. As a final test, here is another script to test the FTP connection. It will attempt both passive and non-passive connections. If both fail then there is nothing else that I can do. You will either have to use an HTTP mirror in your mirrorlist, or you will have to figure out the FTP connection problems on your own as I can not reproduce them here.

Here is the test script. Please post the full output.

#!/usr/bin/env python2

import ftplib
import os
import socket
import tempfile

socket.setdefaulttimeout(5)

host = 'ftp.archlinux.org'
path = '/core/os/i686/core.db.tar.gz'
basename = os.path.basename(path)
prefix = basename.split('.')[0]
repo_dir = os.path.dirname(path)



def indent(line):
  print "    %s" % line


# Catch ftplib and other errors
def cfe(desc, cmd, *args):
  print "%s:" % desc,
  try:
    foo = cmd(*args)
    print "succeeded"
    return foo
  except ftplib.all_errors as e:
    print "failed: %s" % e
    return None



def test(pasv=True):
  ftp = cfe("Connecting to %s" % host, ftplib.FTP, host)
  cfe("Logging in", ftp.login)
  cfe("Setting PASV to %s" % pasv, ftp.set_pasv, pasv)
  cfe("Listing root directory contents with ftp.dir", ftp.dir, indent)
  cfe("Listing %s directory contents with ftp.dir" % repo_dir, ftp.dir, repo_dir, indent)
  root_dir_listing = cfe("Listing root directory contents with ftp.nlst", ftp.nlst)
  if root_dir_listing != None:
    print "Root directory contains %d items" % len(root_dir_listing)

  repo_dir_listing = cfe("Listing %s directory contents with ftp.nlst" % repo_dir, ftp.nlst, repo_dir)
  if repo_dir_listing != None:
    print "%s contains %d items" % (repo_dir, len(repo_dir_listing))
    if path in repo_dir_listing:
      print "Found %s in %s" % (basename, repo_dir)
    else:
      print "%s does not contain %s" % (repo_dir, basename)

  cmd = 'MDTM %s' % path
  cfe('Sending "%s"' % cmd, ftp.sendcmd, cmd)
  f, fpath = tempfile.mkstemp(suffix='.db', prefix=prefix)
  f = os.fdopen(f, 'w')
  cmd = 'RETR %s' % path
  if cfe('Retrieving "%s"' % path, ftp.retrbinary, cmd, f.write):
    print "%d bytes saved to %s." % (f.tell(), fpath)
  f.close
  cfe("Quitting", ftp.quit)


test(True)
print ""
test(False)

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#40 2011-04-28 20:49:20

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

@Ravenman
I am spending my own free time, of which I have little, to try to help you. I find it very demotivating when you ignore parts of my posts. If you are not going to make a real effort then I do not see why I should. I asked you to try other FTP server and to try HTTP servers. This information might have been helpful.

---

Here is the test script. Please post the full output.

I apologize for my clumsiness, I tried follow your instructions closely hmm

Here is the full output of the script:

[root@testserver ~]# python2 updatest.py 
Connecting to ftp.archlinux.org: succeeded
Logging in: succeeded
Setting PASV to True: succeeded
Listing root directory contents with ftp.dir:     drwxrwxr-x    3 99       99           4096 Jul 22  2009 community
    drwxrwxr-x    3 99       99           4096 Sep 11  2010 community-staging
    drwxrwxr-x    3 99       99           4096 Jul 16  2009 community-testing
    drwxrwsr-x    3 99       99           4096 Sep 14  2007 core
    drwxrwsr-x    3 99       99           4096 Sep 22  2010 extra
    drwxr-sr-x    3 99       99           4096 Feb 12  2010 gnome-unstable
    drwxrwsr-x    6 99       99           4096 Nov 18 12:08 iso
    drwxrwsr-x    3 99       99           4096 Dec 18  2009 kde-unstable
    -rw-r--r--    1 99       99             11 Apr 28 20:10 lastsync
    drwxrwxr-x    3 99       99           4096 Aug 24  2010 multilib
    drwxrwxr-x    3 99       99           4096 Sep 11  2010 multilib-testing
    drwxrwsr-x  141 99       99           4096 Apr 28 04:17 other
    drwxr-sr-x    4 99       99           4096 Aug 10  2010 pool
    drwxrwsr-x    4 99       99         249856 Nov 20 19:55 sources
    drwxrwsr-x    3 99       99           4096 Aug 17  2010 staging
    drwxrwsr-x    3 99       99           4096 Sep 18  2009 testing
succeeded
Listing /core/os/i686 directory contents with ftp.dir:     lrwxrwxrwx    1 99       99             51 Jan 13 00:00 acl-2.2.49-2-i686.pkg.tar.xz -> ../../../pool/packages/acl-2.2.49-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Mar 24 22:49 attr-2.4.44-3-i686.pkg.tar.xz -> ../../../pool/packages/attr-2.4.44-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Sep 30  2010 autoconf-2.68-1-any.pkg.tar.xz -> ../../../pool/packages/autoconf-2.68-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Nov 21 06:05 automake-1.11.1-2-any.pkg.tar.xz -> ../../../pool/packages/automake-1.11.1-2-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Apr 06 19:24 b43-fwcutter-014-1-i686.pkg.tar.xz -> ../../../pool/packages/b43-fwcutter-014-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Mar 18 05:25 bash-4.2.008-1-i686.pkg.tar.xz -> ../../../pool/packages/bash-4.2.008-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 22 10:23 bin86-0.16.18-1-i686.pkg.tar.xz -> ../../../pool/packages/bin86-0.16.18-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 21 09:41 binutils-2.21-6-i686.pkg.tar.xz -> ../../../pool/packages/binutils-2.21-6-i686.pkg.tar.xz                                                                                                                                         
    lrwxrwxrwx    1 99       99             52 Aug 23  2010 bison-2.4.3-1-i686.pkg.tar.xz -> ../../../pool/packages/bison-2.4.3-1-i686.pkg.tar.xz                                                                                                                                             
    lrwxrwxrwx    1 99       99             57 Mar 11 11:49 bridge-utils-1.4-4-i686.pkg.tar.xz -> ../../../pool/packages/bridge-utils-1.4-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             75 Jan 26 21:22 btrfs-progs-unstable-0.19.20101006-1-i686.pkg.tar.xz -> ../../../pool/packages/btrfs-progs-unstable-0.19.20101006-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Sep 21  2010 bzip2-1.0.6-1-i686.pkg.tar.xz -> ../../../pool/packages/bzip2-1.0.6-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             69 Dec 15 07:32 ca-certificates-20090814+nmu2-1-any.pkg.tar.xz -> ../../../pool/packages/ca-certificates-20090814+nmu2-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 21 09:40 cloog-0.16.2-1-i686.pkg.tar.xz -> ../../../pool/packages/cloog-0.16.2-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         493360 Apr 28 04:12 core.abs.tar.gz
    lrwxrwxrwx    1 99       99             14 Apr 26 07:25 core.db -> core.db.tar.gz
    -rw-rw-r--    1 99       99          38740 Apr 26 07:25 core.db.tar.gz
    -rw-rw-r--    1 99       99          38730 Apr 26 06:56 core.db.tar.gz.old
    lrwxrwxrwx    1 99       99             17 Apr 26 07:25 core.files -> core.files.tar.gz
    -rw-rw-r--    1 99       99         397108 Apr 26 07:25 core.files.tar.gz
    -rw-rw-r--    1 99       99         397920 Apr 26 06:56 core.files.tar.gz.old
    lrwxrwxrwx    1 99       99             55 Apr 21 09:45 coreutils-8.11-1-i686.pkg.tar.xz -> ../../../pool/packages/coreutils-8.11-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Jan 19 18:23 cracklib-2.8.18-1-i686.pkg.tar.xz -> ../../../pool/packages/cracklib-2.8.18-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 12 17:15 crda-1.1.1-3-i686.pkg.tar.xz -> ../../../pool/packages/crda-1.1.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Jan 04 09:37 cryptsetup-1.2.0-1-i686.pkg.tar.xz -> ../../../pool/packages/cryptsetup-1.2.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Jan 15 01:05 dash-0.5.6.1-2-i686.pkg.tar.xz -> ../../../pool/packages/dash-0.5.6.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 11 23:47 db-5.1.25-1-i686.pkg.tar.xz -> ../../../pool/packages/db-5.1.25-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 23 12:16 dbus-core-1.4.1-1-i686.pkg.tar.xz -> ../../../pool/packages/dbus-core-1.4.1-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          26514 Feb 26  2010 dcron-4.4-2-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             62 Feb 16 01:26 device-mapper-2.02.84-1-i686.pkg.tar.xz -> ../../../pool/packages/device-mapper-2.02.84-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 09 16:31 dhcpcd-5.2.12-1-i686.pkg.tar.xz -> ../../../pool/packages/dhcpcd-5.2.12-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Mar 12 22:33 dialog-1.1_20110302-1-i686.pkg.tar.xz -> ../../../pool/packages/dialog-1.1_20110302-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 11 09:10 diffutils-3.0-2-i686.pkg.tar.xz -> ../../../pool/packages/diffutils-3.0-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Apr 09 16:21 dmraid-1.0.0.rc16.3-1-i686.pkg.tar.xz -> ../../../pool/packages/dmraid-1.0.0.rc16.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Mar 16 11:14 dnsutils-9.8.0-1-i686.pkg.tar.xz -> ../../../pool/packages/dnsutils-9.8.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Jan 02 23:59 e2fsprogs-1.41.14-1-i686.pkg.tar.xz -> ../../../pool/packages/e2fsprogs-1.41.14-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             47 Feb 01 06:21 ed-1.5-2-i686.pkg.tar.xz -> ../../../pool/packages/ed-1.5-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Mar 21 01:49 elfutils-0.152-1-i686.pkg.tar.xz -> ../../../pool/packages/elfutils-0.152-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 12 17:15 eventlog-0.2.12-2-i686.pkg.tar.xz -> ../../../pool/packages/eventlog-0.2.12-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Dec 21 23:21 expat-2.0.1-6-i686.pkg.tar.xz -> ../../../pool/packages/expat-2.0.1-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 14 02:01 fakeroot-1.15.1-1-i686.pkg.tar.xz -> ../../../pool/packages/fakeroot-1.15.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Apr 21 09:43 file-5.06-1-i686.pkg.tar.xz -> ../../../pool/packages/file-5.06-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 13 04:54 filesystem-2011.04-1-any.pkg.tar.xz -> ../../../pool/packages/filesystem-2011.04-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Nov 24 05:14 findutils-4.4.2-3-i686.pkg.tar.xz -> ../../../pool/packages/findutils-4.4.2-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Oct 04  2010 flex-2.5.35-4-i686.pkg.tar.xz -> ../../../pool/packages/flex-2.5.35-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 21 12:39 gawk-3.1.8-2-i686.pkg.tar.xz -> ../../../pool/packages/gawk-3.1.8-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Apr 21 09:41 gcc-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 21 09:41 gcc-ada-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-ada-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 21 09:41 gcc-fortran-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-fortran-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 21 09:41 gcc-go-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-go-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Apr 21 09:41 gcc-libs-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-libs-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Apr 21 09:41 gcc-objc-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-objc-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Jan 13 00:01 gdbm-1.8.3-8-i686.pkg.tar.xz -> ../../../pool/packages/gdbm-1.8.3-8-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Dec 25 01:59 gen-init-cpio-2.6.36-1-i686.pkg.tar.xz -> ../../../pool/packages/gen-init-cpio-2.6.36-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Mar 09 18:33 gettext-0.18.1.1-3-i686.pkg.tar.xz -> ../../../pool/packages/gettext-0.18.1.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Nov 15 23:51 glib2-2.26.1-1-i686.pkg.tar.xz -> ../../../pool/packages/glib2-2.26.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 21 09:41 glibc-2.13-5-i686.pkg.tar.xz -> ../../../pool/packages/glibc-2.13-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Jan 13 20:29 gmp-5.0.1-2-i686.pkg.tar.xz -> ../../../pool/packages/gmp-5.0.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 28 23:32 gpm-1.20.6-6-i686.pkg.tar.xz -> ../../../pool/packages/gpm-1.20.6-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Sep 22  2010 grep-2.7-1-i686.pkg.tar.xz -> ../../../pool/packages/grep-2.7-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Jan 04 06:51 groff-1.21-1-i686.pkg.tar.xz -> ../../../pool/packages/groff-1.21-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         194748 Apr 24  2010 grub-0.97-17-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Nov 21 06:07 gzip-1.4-2-i686.pkg.tar.xz -> ../../../pool/packages/gzip-1.4-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Mar 09 08:26 hdparm-9.37-1-i686.pkg.tar.xz -> ../../../pool/packages/hdparm-9.37-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 11 09:33 heimdal-1.3.3-4-i686.pkg.tar.xz -> ../../../pool/packages/heimdal-1.3.3-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Mar 17 11:38 heirloom-mailx-12.5-1-i686.pkg.tar.xz -> ../../../pool/packages/heirloom-mailx-12.5-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             37 Aug 07  2010 iana-etc-2.30-1-any.pkg.tar.xz -> ../any/iana-etc-2.30-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Mar 03 23:05 idnkit-1.0-1-i686.pkg.tar.xz -> ../../../pool/packages/idnkit-1.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 04 14:21 ifenslave-1.1.0-6-i686.pkg.tar.xz -> ../../../pool/packages/ifenslave-1.1.0-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 19 19:52 inetutils-1.8-2-i686.pkg.tar.xz -> ../../../pool/packages/inetutils-1.8-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             62 Feb 27 11:03 initscripts-2011.02.1-1-i686.pkg.tar.xz -> ../../../pool/packages/initscripts-2011.02.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 03 17:18 iproute2-2.6.37-1-i686.pkg.tar.xz -> ../../../pool/packages/iproute2-2.6.37-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 07 00:02 iptables-1.4.10-1-i686.pkg.tar.xz -> ../../../pool/packages/iptables-1.4.10-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Jan 31 16:16 iputils-20101006-1-i686.pkg.tar.xz -> ../../../pool/packages/iputils-20101006-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Nov 30 18:17 ipw2100-fw-1.3-5-any.pkg.tar.xz -> ../../../pool/packages/ipw2100-fw-1.3-5-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Nov 30 18:17 ipw2200-fw-3.1-3-any.pkg.tar.xz -> ../../../pool/packages/ipw2200-fw-3.1-3-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             59 Dec 21 23:23 isdn4k-utils-3.2p1-6-i686.pkg.tar.xz -> ../../../pool/packages/isdn4k-utils-3.2p1-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 21 09:40 isl-0.06-1-i686.pkg.tar.xz -> ../../../pool/packages/isl-0.06-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Mar 03 17:56 iw-0.9.22-1-i686.pkg.tar.xz -> ../../../pool/packages/iw-0.9.22-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Nov 28 13:40 jfsutils-1.1.14-2-i686.pkg.tar.xz -> ../../../pool/packages/jfsutils-1.1.14-2-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         973804 Apr 14  2010 kbd-1.15.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 25 16:45 kernel26-2.6.38.4-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-2.6.38.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Apr 25 16:45 kernel26-docs-2.6.38.4-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-docs-2.6.38.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             66 Apr 25 16:45 kernel26-headers-2.6.38.4-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-headers-2.6.38.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Apr 26 07:25 kernel26-lts-2.6.32.39-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-lts-2.6.32.39-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             71 Apr 26 07:25 kernel26-lts-headers-2.6.32.39-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-lts-headers-2.6.32.39-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 21 09:43 less-443-1-i686.pkg.tar.xz -> ../../../pool/packages/less-443-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Oct 27  2010 libarchive-2.8.4-2-i686.pkg.tar.gz -> ../../../pool/packages/libarchive-2.8.4-2-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             52 Feb 02 04:33 libcap-2.20-1-i686.pkg.tar.xz -> ../../../pool/packages/libcap-2.20-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Mar 12 01:32 libedit-20110227_3.0-1-i686.pkg.tar.xz -> ../../../pool/packages/libedit-20110227_3.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 10 15:52 libevent-2.0.10-1-i686.pkg.tar.xz -> ../../../pool/packages/libevent-2.0.10-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 23 23:52 libfetch-2.33-3-i686.pkg.tar.gz -> ../../../pool/packages/libfetch-2.33-3-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             58 Apr 23 23:52 libfetch-2.33-3-i686.pkg.tar.gz.sig -> ../../../pool/packages/libfetch-2.33-3-i686.pkg.tar.gz.sig
    lrwxrwxrwx    1 99       99             56 Apr 09 08:00 libgcrypt-1.4.6-2-i686.pkg.tar.xz -> ../../../pool/packages/libgcrypt-1.4.6-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Apr 09 08:00 libgpg-error-1.9-3-i686.pkg.tar.xz -> ../../../pool/packages/libgpg-error-1.9-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Dec 21 23:23 libgssglue-0.1-3-i686.pkg.tar.xz -> ../../../pool/packages/libgssglue-0.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Feb 19 08:53 libldap-2.4.24-1-i686.pkg.tar.xz -> ../../../pool/packages/libldap-2.4.24-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Mar 05 04:08 libmpc-0.9-1-i686.pkg.tar.xz -> ../../../pool/packages/libmpc-0.9-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         120500 Apr 24  2010 libnl-1.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 19 17:49 libpcap-1.1.1-2-i686.pkg.tar.xz -> ../../../pool/packages/libpcap-1.1.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 15 12:27 libpipeline-1.2.0-1-i686.pkg.tar.xz -> ../../../pool/packages/libpipeline-1.2.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Feb 20 18:15 librpcsecgss-0.19-4-i686.pkg.tar.xz -> ../../../pool/packages/librpcsecgss-0.19-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Nov 02 11:57 libsasl-2.1.23-5-i686.pkg.tar.xz -> ../../../pool/packages/libsasl-2.1.23-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Jan 08 12:13 libtirpc-0.2.1-2-i686.pkg.tar.xz -> ../../../pool/packages/libtirpc-0.2.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Jan 02 23:58 libtool-2.4-2-i686.pkg.tar.xz -> ../../../pool/packages/libtool-2.4-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Dec 07 20:41 libusb-1.0.8-1-i686.pkg.tar.xz -> ../../../pool/packages/libusb-1.0.8-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Dec 07 20:40 libusb-compat-0.1.3-1-i686.pkg.tar.xz -> ../../../pool/packages/libusb-compat-0.1.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Mar 24 05:41 licenses-2.8-1-any.pkg.tar.xz -> ../../../pool/packages/licenses-2.8-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Apr 10 06:29 lilo-23.2-1-i686.pkg.tar.xz -> ../../../pool/packages/lilo-23.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Jan 03 04:45 links-2.3pre1-1-i686.pkg.tar.xz -> ../../../pool/packages/links-2.3pre1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             67 Apr 21 09:41 linux-api-headers-2.6.38.1-1-i686.pkg.tar.xz -> ../../../pool/packages/linux-api-headers-2.6.38.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 04 11:18 linux-atm-2.5.1-2-i686.pkg.tar.xz -> ../../../pool/packages/linux-atm-2.5.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Mar 22 13:06 linux-firmware-20110227-1-any.pkg.tar.xz -> ../../../pool/packages/linux-firmware-20110227-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Oct 08  2010 logrotate-3.7.9-1-i686.pkg.tar.xz -> ../../../pool/packages/logrotate-3.7.9-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Feb 16 01:26 lvm2-2.02.84-1-i686.pkg.tar.xz -> ../../../pool/packages/lvm2-2.02.84-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Dec 01 01:21 lzo2-2.04-1-i686.pkg.tar.xz -> ../../../pool/packages/lzo2-2.04-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Mar 14 07:41 m4-1.4.16-1-i686.pkg.tar.xz -> ../../../pool/packages/m4-1.4.16-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         330488 Apr 20  2010 make-3.81-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Apr 15 12:27 man-db-2.6.0.2-1-i686.pkg.tar.xz -> ../../../pool/packages/man-db-2.6.0.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 11 08:09 man-pages-3.32-1-any.pkg.tar.xz -> ../../../pool/packages/man-pages-3.32-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Apr 26 06:55 mdadm-3.2.1-3-i686.pkg.tar.xz -> ../../../pool/packages/mdadm-3.2.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 02 11:56 mkinitcpio-0.6.8-2-any.pkg.tar.xz -> ../../../pool/packages/mkinitcpio-0.6.8-2-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             66 Feb 08 13:19 mkinitcpio-busybox-1.18.2-1-i686.pkg.tar.xz -> ../../../pool/packages/mkinitcpio-busybox-1.18.2-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          13897 Feb 14  2010 mkinitcpio-nfs-utils-0.2-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             53 Apr 13 11:20 mlocate-0.24-1-i686.pkg.tar.xz -> ../../../pool/packages/mlocate-0.24-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Jan 09 04:56 module-init-tools-3.12-2-i686.pkg.tar.xz -> ../../../pool/packages/module-init-tools-3.12-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 21 09:41 mpfr-3.0.1-1-i686.pkg.tar.xz -> ../../../pool/packages/mpfr-3.0.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 29 21:45 nano-2.2.6-1-i686.pkg.tar.xz -> ../../../pool/packages/nano-2.2.6-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Apr 13 11:20 ncurses-5.9-1-i686.pkg.tar.xz -> ../../../pool/packages/ncurses-5.9-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Apr 11 06:54 ndiswrapper-1.56-9-i686.pkg.tar.xz -> ../../../pool/packages/ndiswrapper-1.56-9-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Mar 24 13:20 ndiswrapper-lts-1.56-5-i686.pkg.tar.xz -> ../../../pool/packages/ndiswrapper-lts-1.56-5-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          13728 May 15  2010 ndiswrapper-utils-1.56-2-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         168208 May 15  2009 net-tools-1.60-14-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             36 Feb 23  2010 netcfg-2.5.4-1-any.pkg.tar.gz -> ../any/netcfg-2.5.4-1-any.pkg.tar.gz
    lrwxrwxrwx    1 99       99             56 Feb 10 15:52 nfs-utils-1.2.2-6-i686.pkg.tar.xz -> ../../../pool/packages/nfs-utils-1.2.2-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Mar 07 07:43 nfsidmap-0.24-2-i686.pkg.tar.xz -> ../../../pool/packages/nfsidmap-0.24-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             59 Jan 30 23:05 nilfs-utils-2.0.21-1-i686.pkg.tar.xz -> ../../../pool/packages/nilfs-utils-2.0.21-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Feb 05 10:25 openssh-5.8p1-1-i686.pkg.tar.xz -> ../../../pool/packages/openssh-5.8p1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 09 06:31 openssl-1.0.0.d-1-i686.pkg.tar.gz -> ../../../pool/packages/openssl-1.0.0.d-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             54 Jan 08 20:57 openvpn-2.1.4-1-i686.pkg.tar.xz -> ../../../pool/packages/openvpn-2.1.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 20 22:10 pacman-3.5.2-1-i686.pkg.tar.gz -> ../../../pool/packages/pacman-3.5.2-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             57 Apr 20 22:10 pacman-3.5.2-1-i686.pkg.tar.gz.sig -> ../../../pool/packages/pacman-3.5.2-1-i686.pkg.tar.gz.sig
    lrwxrwxrwx    1 99       99             66 Mar 24 05:26 pacman-mirrorlist-20110324-1-any.pkg.tar.gz -> ../../../pool/packages/pacman-mirrorlist-20110324-1-any.pkg.tar.gz
    lrwxrwxrwx    1 99       99             50 Jan 04 06:52 pam-1.1.3-1-i686.pkg.tar.xz -> ../../../pool/packages/pam-1.1.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Nov 21 06:08 patch-2.6.1-2-i686.pkg.tar.xz -> ../../../pool/packages/patch-2.6.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Jan 31 07:26 pciutils-3.1.7-3-i686.pkg.tar.xz -> ../../../pool/packages/pciutils-3.1.7-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 17 11:38 pcmciautils-017-2-i686.pkg.tar.xz -> ../../../pool/packages/pcmciautils-017-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Jan 18 04:54 pcre-8.12-1-i686.pkg.tar.xz -> ../../../pool/packages/pcre-8.12-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Feb 07 15:03 perl-5.12.3-1-i686.pkg.tar.xz -> ../../../pool/packages/perl-5.12.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 14 00:35 pkg-config-0.25-3-i686.pkg.tar.xz -> ../../../pool/packages/pkg-config-0.25-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Jan 15 01:05 popt-1.16-3-i686.pkg.tar.xz -> ../../../pool/packages/popt-1.16-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Mar 02 11:59 ppl-0.11.2-1-i686.pkg.tar.xz -> ../../../pool/packages/ppl-0.11.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 20 18:15 ppp-2.4.5-2-i686.pkg.tar.xz -> ../../../pool/packages/ppp-2.4.5-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Nov 27 14:03 pptpclient-1.7.2-3-i686.pkg.tar.xz -> ../../../pool/packages/pptpclient-1.7.2-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Dec 11 22:27 procinfo-ng-2.0.304-2-i686.pkg.tar.xz -> ../../../pool/packages/procinfo-ng-2.0.304-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Dec 17 03:59 procps-3.2.8-3-i686.pkg.tar.xz -> ../../../pool/packages/procps-3.2.8-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Sep 17  2010 psmisc-22.13-1-i686.pkg.tar.xz -> ../../../pool/packages/psmisc-22.13-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Mar 06 00:22 readline-6.2.001-1-i686.pkg.tar.xz -> ../../../pool/packages/readline-6.2.001-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Dec 21 23:21 reiserfsprogs-3.6.21-3-i686.pkg.tar.xz -> ../../../pool/packages/reiserfsprogs-3.6.21-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Feb 20 18:15 rfkill-0.4-2-i686.pkg.tar.xz -> ../../../pool/packages/rfkill-0.4-2-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          83348 May 15  2010 rp-pppoe-3.10-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 23 17:19 rpcbind-0.2.0-3-i686.pkg.tar.xz -> ../../../pool/packages/rpcbind-0.2.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 15 07:32 run-parts-3.4.1-1-i686.pkg.tar.xz -> ../../../pool/packages/run-parts-3.4.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Dec 19 16:48 sdparm-1.06-1-i686.pkg.tar.xz -> ../../../pool/packages/sdparm-1.06-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Nov 21 06:08 sed-4.2.1-3-i686.pkg.tar.xz -> ../../../pool/packages/sed-4.2.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Mar 04 05:36 shadow-4.1.4.3-1-i686.pkg.tar.xz -> ../../../pool/packages/shadow-4.1.4.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 16 10:14 sqlite3-3.7.6.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sqlite3-3.7.6.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Apr 16 10:14 sqlite3-doc-3.7.6.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sqlite3-doc-3.7.6.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Apr 16 10:14 sqlite3-tcl-3.7.6.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sqlite3-tcl-3.7.6.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 13 11:20 sudo-1.8.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sudo-1.8.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Feb 09 17:47 sysfsutils-2.1.0-6-i686.pkg.tar.xz -> ../../../pool/packages/sysfsutils-2.1.0-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Mar 13 16:40 syslinux-4.03-4-i686.pkg.tar.xz -> ../../../pool/packages/syslinux-4.03-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 11 07:01 syslog-ng-3.2.2-2-i686.pkg.tar.xz -> ../../../pool/packages/syslog-ng-3.2.2-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Oct 04  2010 sysvinit-2.88-2-i686.pkg.tar.xz -> ../../../pool/packages/sysvinit-2.88-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Mar 19 11:23 tar-1.26-1-i686.pkg.tar.xz -> ../../../pool/packages/tar-1.26-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Aug 31  2010 tcp_wrappers-7.6-12-i686.pkg.tar.xz -> ../../../pool/packages/tcp_wrappers-7.6-12-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 07 00:02 texinfo-4.13a-5-i686.pkg.tar.xz -> ../../../pool/packages/texinfo-4.13a-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 11 06:54 tiacx-20080210-21-i686.pkg.tar.xz -> ../../../pool/packages/tiacx-20080210-21-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Nov 30 18:17 tiacx-firmware-2-3-any.pkg.tar.xz -> ../../../pool/packages/tiacx-firmware-2-3-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             59 Mar 24 13:21 tiacx-lts-20080210-5-i686.pkg.tar.xz -> ../../../pool/packages/tiacx-lts-20080210-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 05 16:46 tzdata-2011e-1-i686.pkg.tar.xz -> ../../../pool/packages/tzdata-2011e-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 19 12:36 udev-167-1-i686.pkg.tar.xz -> ../../../pool/packages/udev-167-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 19 12:36 udev-compat-167-1-i686.pkg.tar.xz -> ../../../pool/packages/udev-compat-167-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 06 19:24 usbutils-002-1-i686.pkg.tar.xz -> ../../../pool/packages/usbutils-002-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 02 11:56 util-linux-2.19-4-i686.pkg.tar.xz -> ../../../pool/packages/util-linux-2.19-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 17 19:08 vi-050325-4-i686.pkg.tar.xz -> ../../../pool/packages/vi-050325-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Dec 13 00:03 vpnc-0.5.3-3-i686.pkg.tar.xz -> ../../../pool/packages/vpnc-0.5.3-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 22 12:39 wget-1.12-5-i686.pkg.tar.xz -> ../../../pool/packages/wget-1.12-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 21 06:09 which-2.20-4-i686.pkg.tar.xz -> ../../../pool/packages/which-2.20-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             65 Nov 28 11:29 wireless-regdb-2010.11.24-1-any.pkg.tar.xz -> ../../../pool/packages/wireless-regdb-2010.11.24-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Dec 02 10:06 wireless_tools-29-4-i686.pkg.tar.xz -> ../../../pool/packages/wireless_tools-29-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 11 11:49 wpa_actiond-1.1-2-i686.pkg.tar.xz -> ../../../pool/packages/wpa_actiond-1.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Mar 14 12:12 wpa_supplicant-0.7.3-3-i686.pkg.tar.xz -> ../../../pool/packages/wpa_supplicant-0.7.3-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Dec 07 21:02 xfsprogs-3.1.4-1-i686.pkg.tar.xz -> ../../../pool/packages/xfsprogs-3.1.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 01 01:20 xinetd-2.3.14-6-i686.pkg.tar.xz -> ../../../pool/packages/xinetd-2.3.14-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 13 04:54 xz-5.0.2-1-i686.pkg.tar.gz -> ../../../pool/packages/xz-5.0.2-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             59 Nov 30 18:17 zd1211-firmware-1.4-4-any.pkg.tar.xz -> ../../../pool/packages/zd1211-firmware-1.4-4-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Dec 13 00:03 zlib-1.2.5-3-i686.pkg.tar.xz -> ../../../pool/packages/zlib-1.2.5-3-i686.pkg.tar.xz
succeeded
Listing root directory contents with ftp.nlst: succeeded
Root directory contains 16 items
Listing /core/os/i686 directory contents with ftp.nlst: succeeded
/core/os/i686 contains 198 items
Found core.db.tar.gz in /core/os/i686
Sending "MDTM /core/os/i686/core.db.tar.gz": failed: 500 command not understood
Retrieving "/core/os/i686/core.db.tar.gz": succeeded
38740 bytes saved to /tmp/corec9FNaw.db.
Quitting: succeeded

Connecting to ftp.archlinux.org: succeeded
Logging in: succeeded
Setting PASV to False: succeeded
Listing root directory contents with ftp.dir:     drwxrwxr-x    3 99       99           4096 Jul 22  2009 community
    drwxrwxr-x    3 99       99           4096 Sep 11  2010 community-staging
    drwxrwxr-x    3 99       99           4096 Jul 16  2009 community-testing
    drwxrwsr-x    3 99       99           4096 Sep 14  2007 core
    drwxrwsr-x    3 99       99           4096 Sep 22  2010 extra
    drwxr-sr-x    3 99       99           4096 Feb 12  2010 gnome-unstable
    drwxrwsr-x    6 99       99           4096 Nov 18 12:08 iso
    drwxrwsr-x    3 99       99           4096 Dec 18  2009 kde-unstable
    -rw-r--r--    1 99       99             11 Apr 28 20:10 lastsync
    drwxrwxr-x    3 99       99           4096 Aug 24  2010 multilib
    drwxrwxr-x    3 99       99           4096 Sep 11  2010 multilib-testing
    drwxrwsr-x  141 99       99           4096 Apr 28 04:17 other
    drwxr-sr-x    4 99       99           4096 Aug 10  2010 pool
    drwxrwsr-x    4 99       99         241664 Nov 20 19:55 sources
    drwxrwsr-x    3 99       99           4096 Aug 17  2010 staging
    drwxrwsr-x    3 99       99           4096 Sep 18  2009 testing
succeeded
Listing /core/os/i686 directory contents with ftp.dir:     lrwxrwxrwx    1 99       99             51 Jan 13 00:00 acl-2.2.49-2-i686.pkg.tar.xz -> ../../../pool/packages/acl-2.2.49-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Mar 24 22:49 attr-2.4.44-3-i686.pkg.tar.xz -> ../../../pool/packages/attr-2.4.44-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Sep 30  2010 autoconf-2.68-1-any.pkg.tar.xz -> ../../../pool/packages/autoconf-2.68-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Nov 21 06:05 automake-1.11.1-2-any.pkg.tar.xz -> ../../../pool/packages/automake-1.11.1-2-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Apr 06 19:24 b43-fwcutter-014-1-i686.pkg.tar.xz -> ../../../pool/packages/b43-fwcutter-014-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Mar 18 05:25 bash-4.2.008-1-i686.pkg.tar.xz -> ../../../pool/packages/bash-4.2.008-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 22 10:23 bin86-0.16.18-1-i686.pkg.tar.xz -> ../../../pool/packages/bin86-0.16.18-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 21 09:41 binutils-2.21-6-i686.pkg.tar.xz -> ../../../pool/packages/binutils-2.21-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Aug 23  2010 bison-2.4.3-1-i686.pkg.tar.xz -> ../../../pool/packages/bison-2.4.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Mar 11 11:49 bridge-utils-1.4-4-i686.pkg.tar.xz -> ../../../pool/packages/bridge-utils-1.4-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             75 Jan 26 21:22 btrfs-progs-unstable-0.19.20101006-1-i686.pkg.tar.xz -> ../../../pool/packages/btrfs-progs-unstable-0.19.20101006-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Sep 21  2010 bzip2-1.0.6-1-i686.pkg.tar.xz -> ../../../pool/packages/bzip2-1.0.6-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             69 Dec 15 07:32 ca-certificates-20090814+nmu2-1-any.pkg.tar.xz -> ../../../pool/packages/ca-certificates-20090814+nmu2-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 21 09:40 cloog-0.16.2-1-i686.pkg.tar.xz -> ../../../pool/packages/cloog-0.16.2-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         493360 Apr 28 04:12 core.abs.tar.gz
    lrwxrwxrwx    1 99       99             14 Apr 26 07:25 core.db -> core.db.tar.gz
    -rw-rw-r--    1 99       99          38740 Apr 26 07:25 core.db.tar.gz
    -rw-rw-r--    1 99       99          38730 Apr 26 06:56 core.db.tar.gz.old
    lrwxrwxrwx    1 99       99             17 Apr 26 07:25 core.files -> core.files.tar.gz
    -rw-rw-r--    1 99       99         397108 Apr 26 07:25 core.files.tar.gz
    -rw-rw-r--    1 99       99         397920 Apr 26 06:56 core.files.tar.gz.old
    lrwxrwxrwx    1 99       99             55 Apr 21 09:45 coreutils-8.11-1-i686.pkg.tar.xz -> ../../../pool/packages/coreutils-8.11-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Jan 19 18:23 cracklib-2.8.18-1-i686.pkg.tar.xz -> ../../../pool/packages/cracklib-2.8.18-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 12 17:15 crda-1.1.1-3-i686.pkg.tar.xz -> ../../../pool/packages/crda-1.1.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Jan 04 09:37 cryptsetup-1.2.0-1-i686.pkg.tar.xz -> ../../../pool/packages/cryptsetup-1.2.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Jan 15 01:05 dash-0.5.6.1-2-i686.pkg.tar.xz -> ../../../pool/packages/dash-0.5.6.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 11 23:47 db-5.1.25-1-i686.pkg.tar.xz -> ../../../pool/packages/db-5.1.25-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 23 12:16 dbus-core-1.4.1-1-i686.pkg.tar.xz -> ../../../pool/packages/dbus-core-1.4.1-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          26514 Feb 26  2010 dcron-4.4-2-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             62 Feb 16 01:26 device-mapper-2.02.84-1-i686.pkg.tar.xz -> ../../../pool/packages/device-mapper-2.02.84-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 09 16:31 dhcpcd-5.2.12-1-i686.pkg.tar.xz -> ../../../pool/packages/dhcpcd-5.2.12-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Mar 12 22:33 dialog-1.1_20110302-1-i686.pkg.tar.xz -> ../../../pool/packages/dialog-1.1_20110302-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 11 09:10 diffutils-3.0-2-i686.pkg.tar.xz -> ../../../pool/packages/diffutils-3.0-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Apr 09 16:21 dmraid-1.0.0.rc16.3-1-i686.pkg.tar.xz -> ../../../pool/packages/dmraid-1.0.0.rc16.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Mar 16 11:14 dnsutils-9.8.0-1-i686.pkg.tar.xz -> ../../../pool/packages/dnsutils-9.8.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Jan 02 23:59 e2fsprogs-1.41.14-1-i686.pkg.tar.xz -> ../../../pool/packages/e2fsprogs-1.41.14-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             47 Feb 01 06:21 ed-1.5-2-i686.pkg.tar.xz -> ../../../pool/packages/ed-1.5-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Mar 21 01:49 elfutils-0.152-1-i686.pkg.tar.xz -> ../../../pool/packages/elfutils-0.152-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 12 17:15 eventlog-0.2.12-2-i686.pkg.tar.xz -> ../../../pool/packages/eventlog-0.2.12-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Dec 21 23:21 expat-2.0.1-6-i686.pkg.tar.xz -> ../../../pool/packages/expat-2.0.1-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 14 02:01 fakeroot-1.15.1-1-i686.pkg.tar.xz -> ../../../pool/packages/fakeroot-1.15.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Apr 21 09:43 file-5.06-1-i686.pkg.tar.xz -> ../../../pool/packages/file-5.06-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 13 04:54 filesystem-2011.04-1-any.pkg.tar.xz -> ../../../pool/packages/filesystem-2011.04-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Nov 24 05:14 findutils-4.4.2-3-i686.pkg.tar.xz -> ../../../pool/packages/findutils-4.4.2-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Oct 04  2010 flex-2.5.35-4-i686.pkg.tar.xz -> ../../../pool/packages/flex-2.5.35-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 21 12:39 gawk-3.1.8-2-i686.pkg.tar.xz -> ../../../pool/packages/gawk-3.1.8-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Apr 21 09:41 gcc-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 21 09:41 gcc-ada-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-ada-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 21 09:41 gcc-fortran-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-fortran-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 21 09:41 gcc-go-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-go-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Apr 21 09:41 gcc-libs-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-libs-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Apr 21 09:41 gcc-objc-4.6.0-3-i686.pkg.tar.xz -> ../../../pool/packages/gcc-objc-4.6.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Jan 13 00:01 gdbm-1.8.3-8-i686.pkg.tar.xz -> ../../../pool/packages/gdbm-1.8.3-8-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Dec 25 01:59 gen-init-cpio-2.6.36-1-i686.pkg.tar.xz -> ../../../pool/packages/gen-init-cpio-2.6.36-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Mar 09 18:33 gettext-0.18.1.1-3-i686.pkg.tar.xz -> ../../../pool/packages/gettext-0.18.1.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Nov 15 23:51 glib2-2.26.1-1-i686.pkg.tar.xz -> ../../../pool/packages/glib2-2.26.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 21 09:41 glibc-2.13-5-i686.pkg.tar.xz -> ../../../pool/packages/glibc-2.13-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Jan 13 20:29 gmp-5.0.1-2-i686.pkg.tar.xz -> ../../../pool/packages/gmp-5.0.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 28 23:32 gpm-1.20.6-6-i686.pkg.tar.xz -> ../../../pool/packages/gpm-1.20.6-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Sep 22  2010 grep-2.7-1-i686.pkg.tar.xz -> ../../../pool/packages/grep-2.7-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Jan 04 06:51 groff-1.21-1-i686.pkg.tar.xz -> ../../../pool/packages/groff-1.21-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         194748 Apr 24  2010 grub-0.97-17-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Nov 21 06:07 gzip-1.4-2-i686.pkg.tar.xz -> ../../../pool/packages/gzip-1.4-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Mar 09 08:26 hdparm-9.37-1-i686.pkg.tar.xz -> ../../../pool/packages/hdparm-9.37-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 11 09:33 heimdal-1.3.3-4-i686.pkg.tar.xz -> ../../../pool/packages/heimdal-1.3.3-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Mar 17 11:38 heirloom-mailx-12.5-1-i686.pkg.tar.xz -> ../../../pool/packages/heirloom-mailx-12.5-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             37 Aug 07  2010 iana-etc-2.30-1-any.pkg.tar.xz -> ../any/iana-etc-2.30-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Mar 03 23:05 idnkit-1.0-1-i686.pkg.tar.xz -> ../../../pool/packages/idnkit-1.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 04 14:21 ifenslave-1.1.0-6-i686.pkg.tar.xz -> ../../../pool/packages/ifenslave-1.1.0-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 19 19:52 inetutils-1.8-2-i686.pkg.tar.xz -> ../../../pool/packages/inetutils-1.8-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             62 Feb 27 11:03 initscripts-2011.02.1-1-i686.pkg.tar.xz -> ../../../pool/packages/initscripts-2011.02.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 03 17:18 iproute2-2.6.37-1-i686.pkg.tar.xz -> ../../../pool/packages/iproute2-2.6.37-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 07 00:02 iptables-1.4.10-1-i686.pkg.tar.xz -> ../../../pool/packages/iptables-1.4.10-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Jan 31 16:16 iputils-20101006-1-i686.pkg.tar.xz -> ../../../pool/packages/iputils-20101006-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Nov 30 18:17 ipw2100-fw-1.3-5-any.pkg.tar.xz -> ../../../pool/packages/ipw2100-fw-1.3-5-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Nov 30 18:17 ipw2200-fw-3.1-3-any.pkg.tar.xz -> ../../../pool/packages/ipw2200-fw-3.1-3-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             59 Dec 21 23:23 isdn4k-utils-3.2p1-6-i686.pkg.tar.xz -> ../../../pool/packages/isdn4k-utils-3.2p1-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 21 09:40 isl-0.06-1-i686.pkg.tar.xz -> ../../../pool/packages/isl-0.06-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Mar 03 17:56 iw-0.9.22-1-i686.pkg.tar.xz -> ../../../pool/packages/iw-0.9.22-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Nov 28 13:40 jfsutils-1.1.14-2-i686.pkg.tar.xz -> ../../../pool/packages/jfsutils-1.1.14-2-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         973804 Apr 14  2010 kbd-1.15.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 25 16:45 kernel26-2.6.38.4-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-2.6.38.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Apr 25 16:45 kernel26-docs-2.6.38.4-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-docs-2.6.38.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             66 Apr 25 16:45 kernel26-headers-2.6.38.4-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-headers-2.6.38.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Apr 26 07:25 kernel26-lts-2.6.32.39-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-lts-2.6.32.39-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             71 Apr 26 07:25 kernel26-lts-headers-2.6.32.39-1-i686.pkg.tar.xz -> ../../../pool/packages/kernel26-lts-headers-2.6.32.39-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 21 09:43 less-443-1-i686.pkg.tar.xz -> ../../../pool/packages/less-443-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Oct 27  2010 libarchive-2.8.4-2-i686.pkg.tar.gz -> ../../../pool/packages/libarchive-2.8.4-2-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             52 Feb 02 04:33 libcap-2.20-1-i686.pkg.tar.xz -> ../../../pool/packages/libcap-2.20-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Mar 12 01:32 libedit-20110227_3.0-1-i686.pkg.tar.xz -> ../../../pool/packages/libedit-20110227_3.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 10 15:52 libevent-2.0.10-1-i686.pkg.tar.xz -> ../../../pool/packages/libevent-2.0.10-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Apr 23 23:52 libfetch-2.33-3-i686.pkg.tar.gz -> ../../../pool/packages/libfetch-2.33-3-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             58 Apr 23 23:52 libfetch-2.33-3-i686.pkg.tar.gz.sig -> ../../../pool/packages/libfetch-2.33-3-i686.pkg.tar.gz.sig
    lrwxrwxrwx    1 99       99             56 Apr 09 08:00 libgcrypt-1.4.6-2-i686.pkg.tar.xz -> ../../../pool/packages/libgcrypt-1.4.6-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Apr 09 08:00 libgpg-error-1.9-3-i686.pkg.tar.xz -> ../../../pool/packages/libgpg-error-1.9-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Dec 21 23:23 libgssglue-0.1-3-i686.pkg.tar.xz -> ../../../pool/packages/libgssglue-0.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Feb 19 08:53 libldap-2.4.24-1-i686.pkg.tar.xz -> ../../../pool/packages/libldap-2.4.24-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Mar 05 04:08 libmpc-0.9-1-i686.pkg.tar.xz -> ../../../pool/packages/libmpc-0.9-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         120500 Apr 24  2010 libnl-1.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 19 17:49 libpcap-1.1.1-2-i686.pkg.tar.xz -> ../../../pool/packages/libpcap-1.1.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Apr 15 12:27 libpipeline-1.2.0-1-i686.pkg.tar.xz -> ../../../pool/packages/libpipeline-1.2.0-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Feb 20 18:15 librpcsecgss-0.19-4-i686.pkg.tar.xz -> ../../../pool/packages/librpcsecgss-0.19-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Nov 02 11:57 libsasl-2.1.23-5-i686.pkg.tar.xz -> ../../../pool/packages/libsasl-2.1.23-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Jan 08 12:13 libtirpc-0.2.1-2-i686.pkg.tar.xz -> ../../../pool/packages/libtirpc-0.2.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Jan 02 23:58 libtool-2.4-2-i686.pkg.tar.xz -> ../../../pool/packages/libtool-2.4-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Dec 07 20:41 libusb-1.0.8-1-i686.pkg.tar.xz -> ../../../pool/packages/libusb-1.0.8-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Dec 07 20:40 libusb-compat-0.1.3-1-i686.pkg.tar.xz -> ../../../pool/packages/libusb-compat-0.1.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Mar 24 05:41 licenses-2.8-1-any.pkg.tar.xz -> ../../../pool/packages/licenses-2.8-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Apr 10 06:29 lilo-23.2-1-i686.pkg.tar.xz -> ../../../pool/packages/lilo-23.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Jan 03 04:45 links-2.3pre1-1-i686.pkg.tar.xz -> ../../../pool/packages/links-2.3pre1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             67 Apr 21 09:41 linux-api-headers-2.6.38.1-1-i686.pkg.tar.xz -> ../../../pool/packages/linux-api-headers-2.6.38.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 04 11:18 linux-atm-2.5.1-2-i686.pkg.tar.xz -> ../../../pool/packages/linux-atm-2.5.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Mar 22 13:06 linux-firmware-20110227-1-any.pkg.tar.xz -> ../../../pool/packages/linux-firmware-20110227-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Oct 08  2010 logrotate-3.7.9-1-i686.pkg.tar.xz -> ../../../pool/packages/logrotate-3.7.9-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Feb 16 01:26 lvm2-2.02.84-1-i686.pkg.tar.xz -> ../../../pool/packages/lvm2-2.02.84-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Dec 01 01:21 lzo2-2.04-1-i686.pkg.tar.xz -> ../../../pool/packages/lzo2-2.04-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Mar 14 07:41 m4-1.4.16-1-i686.pkg.tar.xz -> ../../../pool/packages/m4-1.4.16-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         330488 Apr 20  2010 make-3.81-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Apr 15 12:27 man-db-2.6.0.2-1-i686.pkg.tar.xz -> ../../../pool/packages/man-db-2.6.0.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 11 08:09 man-pages-3.32-1-any.pkg.tar.xz -> ../../../pool/packages/man-pages-3.32-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Apr 26 06:55 mdadm-3.2.1-3-i686.pkg.tar.xz -> ../../../pool/packages/mdadm-3.2.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 02 11:56 mkinitcpio-0.6.8-2-any.pkg.tar.xz -> ../../../pool/packages/mkinitcpio-0.6.8-2-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             66 Feb 08 13:19 mkinitcpio-busybox-1.18.2-1-i686.pkg.tar.xz -> ../../../pool/packages/mkinitcpio-busybox-1.18.2-1-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          13897 Feb 14  2010 mkinitcpio-nfs-utils-0.2-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             53 Apr 13 11:20 mlocate-0.24-1-i686.pkg.tar.xz -> ../../../pool/packages/mlocate-0.24-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             63 Jan 09 04:56 module-init-tools-3.12-2-i686.pkg.tar.xz -> ../../../pool/packages/module-init-tools-3.12-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 21 09:41 mpfr-3.0.1-1-i686.pkg.tar.xz -> ../../../pool/packages/mpfr-3.0.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 29 21:45 nano-2.2.6-1-i686.pkg.tar.xz -> ../../../pool/packages/nano-2.2.6-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Apr 13 11:20 ncurses-5.9-1-i686.pkg.tar.xz -> ../../../pool/packages/ncurses-5.9-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Apr 11 06:54 ndiswrapper-1.56-9-i686.pkg.tar.xz -> ../../../pool/packages/ndiswrapper-1.56-9-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Mar 24 13:20 ndiswrapper-lts-1.56-5-i686.pkg.tar.xz -> ../../../pool/packages/ndiswrapper-lts-1.56-5-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          13728 May 15  2010 ndiswrapper-utils-1.56-2-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99         168208 May 15  2009 net-tools-1.60-14-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             36 Feb 23  2010 netcfg-2.5.4-1-any.pkg.tar.gz -> ../any/netcfg-2.5.4-1-any.pkg.tar.gz
    lrwxrwxrwx    1 99       99             56 Feb 10 15:52 nfs-utils-1.2.2-6-i686.pkg.tar.xz -> ../../../pool/packages/nfs-utils-1.2.2-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Mar 07 07:43 nfsidmap-0.24-2-i686.pkg.tar.xz -> ../../../pool/packages/nfsidmap-0.24-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             59 Jan 30 23:05 nilfs-utils-2.0.21-1-i686.pkg.tar.xz -> ../../../pool/packages/nilfs-utils-2.0.21-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Feb 05 10:25 openssh-5.8p1-1-i686.pkg.tar.xz -> ../../../pool/packages/openssh-5.8p1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Feb 09 06:31 openssl-1.0.0.d-1-i686.pkg.tar.gz -> ../../../pool/packages/openssl-1.0.0.d-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             54 Jan 08 20:57 openvpn-2.1.4-1-i686.pkg.tar.xz -> ../../../pool/packages/openvpn-2.1.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 20 22:10 pacman-3.5.2-1-i686.pkg.tar.gz -> ../../../pool/packages/pacman-3.5.2-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             57 Apr 20 22:10 pacman-3.5.2-1-i686.pkg.tar.gz.sig -> ../../../pool/packages/pacman-3.5.2-1-i686.pkg.tar.gz.sig
    lrwxrwxrwx    1 99       99             66 Mar 24 05:26 pacman-mirrorlist-20110324-1-any.pkg.tar.gz -> ../../../pool/packages/pacman-mirrorlist-20110324-1-any.pkg.tar.gz
    lrwxrwxrwx    1 99       99             50 Jan 04 06:52 pam-1.1.3-1-i686.pkg.tar.xz -> ../../../pool/packages/pam-1.1.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Nov 21 06:08 patch-2.6.1-2-i686.pkg.tar.xz -> ../../../pool/packages/patch-2.6.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Jan 31 07:26 pciutils-3.1.7-3-i686.pkg.tar.xz -> ../../../pool/packages/pciutils-3.1.7-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 17 11:38 pcmciautils-017-2-i686.pkg.tar.xz -> ../../../pool/packages/pcmciautils-017-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Jan 18 04:54 pcre-8.12-1-i686.pkg.tar.xz -> ../../../pool/packages/pcre-8.12-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Feb 07 15:03 perl-5.12.3-1-i686.pkg.tar.xz -> ../../../pool/packages/perl-5.12.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 14 00:35 pkg-config-0.25-3-i686.pkg.tar.xz -> ../../../pool/packages/pkg-config-0.25-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Jan 15 01:05 popt-1.16-3-i686.pkg.tar.xz -> ../../../pool/packages/popt-1.16-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Mar 02 11:59 ppl-0.11.2-1-i686.pkg.tar.xz -> ../../../pool/packages/ppl-0.11.2-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 20 18:15 ppp-2.4.5-2-i686.pkg.tar.xz -> ../../../pool/packages/ppp-2.4.5-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Nov 27 14:03 pptpclient-1.7.2-3-i686.pkg.tar.xz -> ../../../pool/packages/pptpclient-1.7.2-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Dec 11 22:27 procinfo-ng-2.0.304-2-i686.pkg.tar.xz -> ../../../pool/packages/procinfo-ng-2.0.304-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Dec 17 03:59 procps-3.2.8-3-i686.pkg.tar.xz -> ../../../pool/packages/procps-3.2.8-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Sep 17  2010 psmisc-22.13-1-i686.pkg.tar.xz -> ../../../pool/packages/psmisc-22.13-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Mar 06 00:22 readline-6.2.001-1-i686.pkg.tar.xz -> ../../../pool/packages/readline-6.2.001-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Dec 21 23:21 reiserfsprogs-3.6.21-3-i686.pkg.tar.xz -> ../../../pool/packages/reiserfsprogs-3.6.21-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Feb 20 18:15 rfkill-0.4-2-i686.pkg.tar.xz -> ../../../pool/packages/rfkill-0.4-2-i686.pkg.tar.xz
    -rw-rw-r--    1 99       99          83348 May 15  2010 rp-pppoe-3.10-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 23 17:19 rpcbind-0.2.0-3-i686.pkg.tar.xz -> ../../../pool/packages/rpcbind-0.2.0-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Dec 15 07:32 run-parts-3.4.1-1-i686.pkg.tar.xz -> ../../../pool/packages/run-parts-3.4.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             52 Dec 19 16:48 sdparm-1.06-1-i686.pkg.tar.xz -> ../../../pool/packages/sdparm-1.06-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Nov 21 06:08 sed-4.2.1-3-i686.pkg.tar.xz -> ../../../pool/packages/sed-4.2.1-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Mar 04 05:36 shadow-4.1.4.3-1-i686.pkg.tar.xz -> ../../../pool/packages/shadow-4.1.4.3-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 16 10:14 sqlite3-3.7.6.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sqlite3-3.7.6.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Apr 16 10:14 sqlite3-doc-3.7.6.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sqlite3-doc-3.7.6.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             60 Apr 16 10:14 sqlite3-tcl-3.7.6.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sqlite3-tcl-3.7.6.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Apr 13 11:20 sudo-1.8.1-1-i686.pkg.tar.xz -> ../../../pool/packages/sudo-1.8.1-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             57 Feb 09 17:47 sysfsutils-2.1.0-6-i686.pkg.tar.xz -> ../../../pool/packages/sysfsutils-2.1.0-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Mar 13 16:40 syslinux-4.03-4-i686.pkg.tar.xz -> ../../../pool/packages/syslinux-4.03-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 11 07:01 syslog-ng-3.2.2-2-i686.pkg.tar.xz -> ../../../pool/packages/syslog-ng-3.2.2-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Oct 04  2010 sysvinit-2.88-2-i686.pkg.tar.xz -> ../../../pool/packages/sysvinit-2.88-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Mar 19 11:23 tar-1.26-1-i686.pkg.tar.xz -> ../../../pool/packages/tar-1.26-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Aug 31  2010 tcp_wrappers-7.6-12-i686.pkg.tar.xz -> ../../../pool/packages/tcp_wrappers-7.6-12-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 07 00:02 texinfo-4.13a-5-i686.pkg.tar.xz -> ../../../pool/packages/texinfo-4.13a-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 11 06:54 tiacx-20080210-21-i686.pkg.tar.xz -> ../../../pool/packages/tiacx-20080210-21-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Nov 30 18:17 tiacx-firmware-2-3-any.pkg.tar.xz -> ../../../pool/packages/tiacx-firmware-2-3-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             59 Mar 24 13:21 tiacx-lts-20080210-5-i686.pkg.tar.xz -> ../../../pool/packages/tiacx-lts-20080210-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 05 16:46 tzdata-2011e-1-i686.pkg.tar.xz -> ../../../pool/packages/tzdata-2011e-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 19 12:36 udev-167-1-i686.pkg.tar.xz -> ../../../pool/packages/udev-167-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Apr 19 12:36 udev-compat-167-1-i686.pkg.tar.xz -> ../../../pool/packages/udev-compat-167-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             53 Apr 06 19:24 usbutils-002-1-i686.pkg.tar.xz -> ../../../pool/packages/usbutils-002-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 02 11:56 util-linux-2.19-4-i686.pkg.tar.xz -> ../../../pool/packages/util-linux-2.19-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 17 19:08 vi-050325-4-i686.pkg.tar.xz -> ../../../pool/packages/vi-050325-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Dec 13 00:03 vpnc-0.5.3-3-i686.pkg.tar.xz -> ../../../pool/packages/vpnc-0.5.3-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             50 Feb 22 12:39 wget-1.12-5-i686.pkg.tar.xz -> ../../../pool/packages/wget-1.12-5-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Nov 21 06:09 which-2.20-4-i686.pkg.tar.xz -> ../../../pool/packages/which-2.20-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             65 Nov 28 11:29 wireless-regdb-2010.11.24-1-any.pkg.tar.xz -> ../../../pool/packages/wireless-regdb-2010.11.24-1-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             58 Dec 02 10:06 wireless_tools-29-4-i686.pkg.tar.xz -> ../../../pool/packages/wireless_tools-29-4-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             56 Mar 11 11:49 wpa_actiond-1.1-2-i686.pkg.tar.xz -> ../../../pool/packages/wpa_actiond-1.1-2-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             61 Mar 14 12:12 wpa_supplicant-0.7.3-3-i686.pkg.tar.xz -> ../../../pool/packages/wpa_supplicant-0.7.3-3-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             55 Dec 07 21:02 xfsprogs-3.1.4-1-i686.pkg.tar.xz -> ../../../pool/packages/xfsprogs-3.1.4-1-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             54 Dec 01 01:20 xinetd-2.3.14-6-i686.pkg.tar.xz -> ../../../pool/packages/xinetd-2.3.14-6-i686.pkg.tar.xz
    lrwxrwxrwx    1 99       99             49 Apr 13 04:54 xz-5.0.2-1-i686.pkg.tar.gz -> ../../../pool/packages/xz-5.0.2-1-i686.pkg.tar.gz
    lrwxrwxrwx    1 99       99             59 Nov 30 18:17 zd1211-firmware-1.4-4-any.pkg.tar.xz -> ../../../pool/packages/zd1211-firmware-1.4-4-any.pkg.tar.xz
    lrwxrwxrwx    1 99       99             51 Dec 13 00:03 zlib-1.2.5-3-i686.pkg.tar.xz -> ../../../pool/packages/zlib-1.2.5-3-i686.pkg.tar.xz
succeeded
Listing root directory contents with ftp.nlst: succeeded
Root directory contains 16 items
Listing /core/os/i686 directory contents with ftp.nlst: succeeded
/core/os/i686 contains 198 items
Found core.db.tar.gz in /core/os/i686
Sending "MDTM /core/os/i686/core.db.tar.gz": failed: 500 command not understood
Retrieving "/core/os/i686/core.db.tar.gz": succeeded
38740 bytes saved to /tmp/coresozNQe.db.
Quitting: succeeded
[root@testserver ~]# 

Offline

#41 2011-04-28 22:55:48

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

Ravenman wrote:

I apologize for my clumsiness, I tried follow your instructions closely hmm

It's fine. I was (am) just a bit frustrated.

Ravenman wrote:

Here is the full output of the script:

...
Sending "MDTM /core/os/i686/core.db.tar.gz": failed: 500 command not understood
...
Sending "MDTM /core/os/i686/core.db.tar.gz": failed: 500 command not understood
...

Thanks. The problem is that the MDTM command is not recognized when sent from your computer. The script should send the exact same commands, and the remote server is the same, so this is confusing.

Here's one more debugging script (I had not seen the "set_debuglevel" command before):

#!/usr/bin/env python2

import ftplib
import urlparse

urls = [
  'ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz',
  'ftp://mirror.aarnet.edu.au/pub/archlinux/core/os/i686/core.db.tar.gz',
  'ftp://mirror.rit.edu/archlinux/core/os/i686/core.db.tar.gz',
  'ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/core/os/i686/core.db.tar.gz',
  'ftp://ftp.tku.edu.tw/Linux/ArchLinux/core/os/i686/core.db.tar.gz'

]

for url in urls:
  print url
  parsed = urlparse.urlparse(url)
  path = parsed.path
  host = parsed.netloc
  port = None
  try:
    host, port = host.split(':')
  except ValueError:
    pass

  ftp = ftplib.FTP()
  ftp.set_debuglevel(2)
  ftp.connect(host, port)
  ftp.login()
  try:
    ftp.sendcmd('MDTM %s' % path)
  except ftplib.all_errors as e:
    print "error: %s" % e
  ftp.quit()
  print ""

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#42 2011-05-02 22:59:00

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

Thanks. The problem is that the MDTM command is not recognized when sent from your computer. The script should send the exact same commands, and the remote server is the same, so this is confusing.

Here's one more debugging script (I had not seen the "set_debuglevel" command before):

Here is the full output of the script:

[root@testserver ~]# python2 test_ftp.py
ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
*get* '220 (vsFTPd 2.1.0)\r\n'
*resp* '220 (vsFTPd 2.1.0)'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230 Login successful.\r\n'
*resp* '230 Login successful.'
*cmd* 'MDTM /core/os/i686/core.db.tar.gz'
*put* 'MDTM /core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://mirror.aarnet.edu.au/pub/archlinux/core/os/i686/core.db.tar.gz
*get* '220-extended FTP [MODE XDC][XDC/BASE64][PIPELINE] (1) 202.158.214.106\r\n'
*get* "220- Welcome to mirror.aarnet.edu.au - AARNet's mirror service\r\n"
*get* '220- ================================================================\r\n'
*get* '220- \r\n'
*get* '220- Content is available via:\r\n'
*get* '220-        rsync://mirror.aarnet.edu.au/\r\n'
*get* '220-        ftp://mirror.aarnet.edu.au/\r\n'
*get* '220-        http://mirror.aarnet.edu.au/\r\n'
*get* '220- \r\n'
*get* '220- Please read the FAQ at http://mirror.aarnet.edu.au/indexfaq.html\r\n'
*get* '220- \r\n'
*get* '220- ================================================================\r\n'
*get* '220-  \r\n'                                                                                                                             
*get* '220- Feedback and queries are welcome to mirror@aarnet.edu.au\r\n'                                                                      
*get* '220- \r\n'                                                                                                                              
*get* '220 \r\n'                                                                                                                               
*resp* "220-extended FTP [MODE XDC][XDC/BASE64][PIPELINE] (1) 202.158.214.106\n220- Welcome to mirror.aarnet.edu.au - AARNet's mirror service\n220- ================================================================\n220- \n220- Content is available via:\n220-        rsync://mirror.aarnet.edu.au/\n220-        ftp://mirror.aarnet.edu.au/\n220-        http://mirror.aarnet.edu.au/\n220- \n220- Please read the FAQ at http://mirror.aarnet.edu.au/indexfaq.html\n220- \n220- ================================================================\n220-  \n220- Feedback and queries are welcome to mirror@aarnet.edu.au\n220- \n220 "
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230 Login successful.\r\n'
*resp* '230 Login successful.'
*cmd* 'MDTM /pub/archlinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /pub/archlinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://mirror.rit.edu/archlinux/core/os/i686/core.db.tar.gz
*get* '220 Welcome to mirrors.rit.edu. You should use http instead.\r\n'
*resp* '220 Welcome to mirrors.rit.edu. You should use http instead.'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230 Login successful.\r\n'
*resp* '230 Login successful.'
*cmd* 'MDTM /archlinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /archlinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/core/os/i686/core.db.tar.gz
*get* '220 (vsFTPd 2.1.1)\r\n'
*resp* '220 (vsFTPd 2.1.1)'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230-Welcome to JAIST Public Mirror Service (ftp.jaist.ac.jp).\r\n'
*get* '230-If you have any problem, please contact ftp-admin@jaist.ac.jp.\r\n'
*get* '230 Login successful.\r\n'
*resp* '230-Welcome to JAIST Public Mirror Service (ftp.jaist.ac.jp).\n230-If you have any problem, please contact ftp-admin@jaist.ac.jp.\n230 Login successful.'
*cmd* 'MDTM /pub/Linux/ArchLinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /pub/Linux/ArchLinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://ftp.tku.edu.tw/Linux/ArchLinux/core/os/i686/core.db.tar.gz
*get* '220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------\r\n'
*get* '220-You are user number 4 of 50 allowed.\r\n'
*get* '220-Local time is now 06:49. Server port: 21.\r\n'
*get* '220-IPv6 connections are also welcome on this server.\r\n'
*get* '220 You will be disconnected after 15 minutes of inactivity.\r\n'
*resp* '220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------\n220-You are user number 4 of 50 allowed.\n220-Local time is now 06:49. Server port: 21.\n220-IPv6 connections are also welcome on this server.\n220 You will be disconnected after 15 minutes of inactivity.'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '230 Anonymous user logged in\r\n'
*resp* '230 Anonymous user logged in'
*cmd* 'MDTM /Linux/ArchLinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /Linux/ArchLinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Logout.\r\n'
*resp* '221 Logout.'

[root@testserver ~]# 

Offline

#43 2011-05-02 23:00:01

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

Thanks. The problem is that the MDTM command is not recognized when sent from your computer. The script should send the exact same commands, and the remote server is the same, so this is confusing.

Here's one more debugging script (I had not seen the "set_debuglevel" command before):

Here is the full output of the script:

[root@testserver ~]# python2 test_ftp.py
ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
*get* '220 (vsFTPd 2.1.0)\r\n'
*resp* '220 (vsFTPd 2.1.0)'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230 Login successful.\r\n'
*resp* '230 Login successful.'
*cmd* 'MDTM /core/os/i686/core.db.tar.gz'
*put* 'MDTM /core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://mirror.aarnet.edu.au/pub/archlinux/core/os/i686/core.db.tar.gz
*get* '220-extended FTP [MODE XDC][XDC/BASE64][PIPELINE] (1) 202.158.214.106\r\n'
*get* "220- Welcome to mirror.aarnet.edu.au - AARNet's mirror service\r\n"
*get* '220- ================================================================\r\n'
*get* '220- \r\n'
*get* '220- Content is available via:\r\n'
*get* '220-        rsync://mirror.aarnet.edu.au/\r\n'
*get* '220-        ftp://mirror.aarnet.edu.au/\r\n'
*get* '220-        http://mirror.aarnet.edu.au/\r\n'
*get* '220- \r\n'
*get* '220- Please read the FAQ at http://mirror.aarnet.edu.au/indexfaq.html\r\n'
*get* '220- \r\n'
*get* '220- ================================================================\r\n'
*get* '220-  \r\n'                                                                                                                             
*get* '220- Feedback and queries are welcome to mirror@aarnet.edu.au\r\n'                                                                      
*get* '220- \r\n'                                                                                                                              
*get* '220 \r\n'                                                                                                                               
*resp* "220-extended FTP [MODE XDC][XDC/BASE64][PIPELINE] (1) 202.158.214.106\n220- Welcome to mirror.aarnet.edu.au - AARNet's mirror service\n220- ================================================================\n220- \n220- Content is available via:\n220-        rsync://mirror.aarnet.edu.au/\n220-        ftp://mirror.aarnet.edu.au/\n220-        http://mirror.aarnet.edu.au/\n220- \n220- Please read the FAQ at http://mirror.aarnet.edu.au/indexfaq.html\n220- \n220- ================================================================\n220-  \n220- Feedback and queries are welcome to mirror@aarnet.edu.au\n220- \n220 "
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230 Login successful.\r\n'
*resp* '230 Login successful.'
*cmd* 'MDTM /pub/archlinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /pub/archlinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://mirror.rit.edu/archlinux/core/os/i686/core.db.tar.gz
*get* '220 Welcome to mirrors.rit.edu. You should use http instead.\r\n'
*resp* '220 Welcome to mirrors.rit.edu. You should use http instead.'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230 Login successful.\r\n'
*resp* '230 Login successful.'
*cmd* 'MDTM /archlinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /archlinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/core/os/i686/core.db.tar.gz
*get* '220 (vsFTPd 2.1.1)\r\n'
*resp* '220 (vsFTPd 2.1.1)'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '331 Please specify the password.\r\n'
*resp* '331 Please specify the password.'
*cmd* 'PASS **********'
*put* 'PASS **********\r\n'
*get* '230-Welcome to JAIST Public Mirror Service (ftp.jaist.ac.jp).\r\n'
*get* '230-If you have any problem, please contact ftp-admin@jaist.ac.jp.\r\n'
*get* '230 Login successful.\r\n'
*resp* '230-Welcome to JAIST Public Mirror Service (ftp.jaist.ac.jp).\n230-If you have any problem, please contact ftp-admin@jaist.ac.jp.\n230 Login successful.'
*cmd* 'MDTM /pub/Linux/ArchLinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /pub/Linux/ArchLinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Goodbye.\r\n'
*resp* '221 Goodbye.'

ftp://ftp.tku.edu.tw/Linux/ArchLinux/core/os/i686/core.db.tar.gz
*get* '220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------\r\n'
*get* '220-You are user number 4 of 50 allowed.\r\n'
*get* '220-Local time is now 06:49. Server port: 21.\r\n'
*get* '220-IPv6 connections are also welcome on this server.\r\n'
*get* '220 You will be disconnected after 15 minutes of inactivity.\r\n'
*resp* '220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------\n220-You are user number 4 of 50 allowed.\n220-Local time is now 06:49. Server port: 21.\n220-IPv6 connections are also welcome on this server.\n220 You will be disconnected after 15 minutes of inactivity.'
*cmd* 'USER anonymous'
*put* 'USER anonymous\r\n'
*get* '230 Anonymous user logged in\r\n'
*resp* '230 Anonymous user logged in'
*cmd* 'MDTM /Linux/ArchLinux/core/os/i686/core.db.tar.gz'
*put* 'MDTM /Linux/ArchLinux/core/os/i686/core.db.tar.gz\r\n'
*get* '500 command not understood\r\n'
*resp* '500 command not understood'
error: 500 command not understood
*cmd* 'QUIT'
*put* 'QUIT\r\n'
*get* '221 Logout.\r\n'
*resp* '221 Logout.'

[root@testserver ~]# 

Offline

#44 2011-05-03 13:23:22

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

@Ravenman
I have no idea why it doesn't work on your system. I've posted a thread in the programming forum to see if anyone else does.

Use HTTP mirrors in the meantime.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#45 2011-05-04 23:07:11

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

@Ravenman
Use HTTP mirrors in the meantime.

Thanks by your patience and help.

But the problem still continues:

Server side messages:

[root@testserver ~]# pacserve
Starting Pacserve...
  address: all interfaces
  port: 15678
  pid: 1767
Press <Ctrl-C> to exit.

[2011-05-04 17:58:37] 192.168.2.3:43684 querying http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
[2011-05-04 17:58:39] 192.168.2.3:43684 redirecting to http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
[2011-05-04 17:58:39] 192.168.2.3:43684 "GET /request/core/i686/core.db.tar.gz HTTP/1.0" 307 -
[2011-05-04 17:58:39] 192.168.2.3:43688 querying http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
[2011-05-04 17:58:39] 192.168.2.3:43688 redirecting to http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
[2011-05-04 17:58:39] 192.168.2.3:43688 "GET /request/extra/i686/extra.db.tar.gz HTTP/1.0" 307 -
[2011-05-04 17:58:39] 192.168.2.3:43690 querying http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
[2011-05-04 17:58:40] 192.168.2.3:43690 redirecting to http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
[2011-05-04 17:58:40] 192.168.2.3:43690 "GET /request/community/i686/community.db.tar.gz HTTP/1.0" 307 -

Client side messages:

[root@testclient ~]# pacman -Sy
:: Synchronizing package databases...
--2011-05-04 17:58:39--  http://192.168.2.2:15678/request/core/i686/core.db.tar.gz
Connecting to 192.168.139.46:15678... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz [following]
--2011-05-04 17:58:41--  http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
Resolving mirrors.kernel.org... 149.20.4.71, 149.20.20.135, 199.6.1.174, ...
Connecting to mirrors.kernel.org|149.20.4.71|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/var/lib/pacman/core.db.tar.gz.part'

    [ <=>                                                                                                  ] 3,435       --.-K/s   in 0s      

2011-05-04 17:58:41 (157 MB/s) - `/var/lib/pacman/core.db.tar.gz.part' saved [3435]

--2011-05-04 17:58:41--  http://192.168.2.2:15678/request/extra/i686/extra.db.tar.gz
Connecting to 192.168.139.46:15678... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz [following]
--2011-05-04 17:58:41--  http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
Resolving mirrors.kernel.org... 199.6.1.174, 130.239.17.6, 149.20.4.71, ...
Connecting to mirrors.kernel.org|199.6.1.174|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/var/lib/pacman/extra.db.tar.gz.part'

    [ <=>                                                                                                  ] 3,437       --.-K/s   in 0s      

2011-05-04 17:58:41 (161 MB/s) - `/var/lib/pacman/extra.db.tar.gz.part' saved [3437]

--2011-05-04 17:58:41--  http://192.168.2.2:15678/request/community/i686/community.db.tar.gz
Connecting to 192.168.139.46:15678... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz [following]
--2011-05-04 17:58:42--  http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
Resolving mirrors.kernel.org... 149.20.4.71, 149.20.20.135, 199.6.1.174, ...                                                                   
Connecting to mirrors.kernel.org|149.20.4.71|:80... connected.                                                                                 
HTTP request sent, awaiting response... 200 OK                                                                                                 
Length: unspecified [text/html]                                                                                                                
Saving to: `/var/lib/pacman/community.db.tar.gz.part'

    [ <=>                                                                                                  ] 3,445       --.-K/s   in 0s      

2011-05-04 17:58:42 (34.4 MB/s) - `/var/lib/pacman/community.db.tar.gz.part' saved [3445]

Last edited by Ravenman (2011-05-04 23:12:35)

Offline

#46 2011-05-07 22:37:31

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

Ravenman wrote:

But the problem still continues:

According to the output that you posted, pacserve is redirecting database requests to the external mirror, and the client is following them to download the database. That is how it is supposed to work.
Pacserve only downloads packages from other pacserve servers.

Maybe there is some confusion about what Pacserve is supposed to do. I have updated the info page with two diagrams that should help to clarify it.

If that is already clear then please explain what it is that is not working. What is it that you expect it to do, and what is it doing instead?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#47 2011-05-09 16:38:59

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

According to the output that you posted, pacserve is redirecting database requests to the external mirror, and the client is following them to download the database. That is how it is supposed to work.
Pacserve only downloads packages from other pacserve servers.

Maybe there is some confusion about what Pacserve is supposed to do. I have updated the info page with two diagrams that should help to clarify it.

If that is already clear then please explain what it is that is not working. What is it that you expect it to do, and what is it doing instead?

I have these messages:

Server side:

[root@testserver ~]# pacserve 
Starting Pacserve...
  address: all interfaces
  port: 15678
  pid: 1636
Press <Ctrl-C> to exit.

[2011-05-09 11:10:17] 192.168.2.3:53583 querying http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
[2011-05-09 11:10:18] 192.168.2.3:53583 redirecting to http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
[2011-05-09 11:10:18] 192.168.2.3:53583 "GET /request/core/i686/core.db.tar.gz HTTP/1.0" 307 -
[2011-05-09 11:10:18] 192.168.2.3:53585 querying http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
[2011-05-09 11:10:18] 192.168.2.3:53585 redirecting to http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
[2011-05-09 11:10:18] 192.168.2.3:53585 "GET /request/extra/i686/extra.db.tar.gz HTTP/1.0" 307 -
[2011-05-09 11:10:18] 192.168.2.3:53587 querying http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
[2011-05-09 11:10:18] 192.168.2.3:53587 redirecting to http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
[2011-05-09 11:10:18] 192.168.2.3:53587 "GET /request/community/i686/community.db.tar.gz HTTP/1.0" 307 -

Client side:

[root@testworkstation ~]# pacman -Syu
:: Synchronizing package databases...
--2011-05-09 11:10:26--  http://192.168.2.2:15678/request/core/i686/core.db.tar.gz
Connecting to 192.168.2.2:15678... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz [following]
--2011-05-09 11:10:26--  http://mirrors.kernel.org/archlinux/core/os/i686/core.db.tar.gz
Resolving mirrors.kernel.org... 149.20.20.135, 199.6.1.167, 130.239.17.7, ...
Connecting to mirrors.kernel.org|149.20.20.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/var/lib/pacman/core.db.tar.gz.part'

    [ <=>                                                                                                  ] 3,435       --.-K/s   in 0s      

2011-05-09 11:10:26 (90.0 MB/s) - `/var/lib/pacman/core.db.tar.gz.part' saved [3435]

--2011-05-09 11:10:26--  http://192.168.2.2:15678/request/extra/i686/extra.db.tar.gz
Connecting to 192.168.2.2:15678... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz [following]
--2011-05-09 11:10:26--  http://mirrors.kernel.org/archlinux/extra/os/i686/extra.db.tar.gz
Resolving mirrors.kernel.org... 130.239.17.7, 149.20.4.71, 149.20.20.135, ...
Connecting to mirrors.kernel.org|130.239.17.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/var/lib/pacman/extra.db.tar.gz.part'

    [ <=>                                                                                                  ] 3,437       --.-K/s   in 0s      

2011-05-09 11:10:26 (174 MB/s) - `/var/lib/pacman/extra.db.tar.gz.part' saved [3437]

--2011-05-09 11:10:26--  http://192.168.2.2:15678/request/community/i686/community.db.tar.gz
Connecting to 192.168.2.2:15678... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz [following]
--2011-05-09 11:10:27--  http://mirrors.kernel.org/archlinux/community/os/i686/community.db.tar.gz
Resolving mirrors.kernel.org... 149.20.20.135, 199.6.1.167, 130.239.17.7, ...                                                                  
Connecting to mirrors.kernel.org|149.20.20.135|:80... connected.                                                                               
HTTP request sent, awaiting response... 200 OK                                                                                                 
Length: unspecified [text/html]                                                                                                                
Saving to: `/var/lib/pacman/community.db.tar.gz.part'

    [ <=>                                                                                                  ] 3,445       --.-K/s   in 0s      

2011-05-09 11:10:27 (99.8 MB/s) - `/var/lib/pacman/community.db.tar.gz.part' saved [3445]

:: Starting full system upgrade...
 there is nothing to do
[root@testworkstation ~]# 

I don't understand it, the workstation has outdated packages and the server has the latest version of these ones ... why the workstation doesn't upgrade? hmm

Offline

#48 2011-05-10 17:53:26

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

Ravenman wrote:

Client side:

:: Starting full system upgrade...
 there is nothing to do
[root@testworkstation ~]# 

I don't understand it, the workstation has outdated packages and the server has the latest version of these ones ... why the workstation doesn't upgrade? hmm

The workstation doesn't seem to think anything is outdated. What packages do you think are outdated?
What is the output of "pacman -Si ..." for those packages on the server?
What is the output on the client?


Also post the output of

ls /var/lib/pacman/sync

on the workstation. The output may be misleading, but the client might be saving the database files with a ".part" extension. If that is true, then post your pacman.conf file so I can see the XferCommand the client is using.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#49 2011-05-11 20:52:37

Ravenman
Member
Registered: 2009-07-03
Posts: 236

Re: pacserve - easily share Pacman packages between computers

Xyne wrote:

The workstation doesn't seem to think anything is outdated. What packages do you think are outdated?

Some examples:

Server side:

[testuser@testserver ~]$ pacman -Q pacman firefox thunderbird
pacman 3.5.2-1
firefox 4.0.1-1
thunderbird 3.1.10-2
[testuser@testserver ~]$

Client side:

[testuser@testworkstation ~]$ pacman -Q pacman firefox thunderbird
pacman 3.4.3-1
firefox 3.6.11-1
thunderbird 3.1.5-1
[testuser@testworkstation ~]$
Xyne wrote:

What is the output of "pacman -Si ..." for those packages on the server?

[testuser@testserver ~]$ pacman -Si pacman firefox thunderbird
Repository     : core
Name           : pacman
Version        : 3.5.2-1
URL            : http://www.archlinux.org/pacman/
Licenses       : GPL
Groups         : base
Provides       : None
Depends On     : bash  libarchive>=2.8.4  libfetch>=2.28  pacman-mirrorlist
Optional Deps  : fakeroot: for makepkg usage as normal user
                 curl: for rankmirrors usage
Conflicts With : None
Replaces       : None
Download Size  : 839.67 K
Installed Size : 2844.00 K
Packager       : Dan McGee <dan@archlinux.org>
Architecture   : i686
Build Date     : Mon 18 Apr 2011 11:52:27 AM COT
MD5 Sum        : a42e0e8d69bd72d0961609ae016b666b
Description    : A library-based package manager with dependency support

Repository     : extra
Name           : firefox
Version        : 4.0.1-1
URL            : http://www.mozilla.org/projects/firefox
Licenses       : MPL  GPL  LGPL
Groups         : None
Provides       : None
Depends On     : xulrunner=2.0.1  desktop-file-utils
Optional Deps  : None
Conflicts With : None
Replaces       : None
Download Size  : 1610.41 K
Installed Size : 2000.00 K
Packager       : Ionut Biru <ibiru@archlinux.org>
Architecture   : i686
Build Date     : Fri 29 Apr 2011 09:05:51 AM COT
MD5 Sum        : 6b338787b574112df7fe09e7326ce014
Description    : Standalone web browser from mozilla.org

Repository     : extra
Name           : thunderbird
Version        : 3.1.10-2
URL            : http://www.mozilla.org/projects/thunderbird
Licenses       : MPL  GPL
Groups         : None
Provides       : None
Depends On     : gtk2  gcc-libs  mozilla-common  nss  libxt  shared-mime-info  alsa-lib
                 dbus-glib  hunspell  sqlite3>=3.7.4  desktop-file-utils  libnotify
Optional Deps  : libcanberra: for sound support
Conflicts With : None
Replaces       : None
Download Size  : 9971.39 K
Installed Size : 38416.00 K
Packager       : Ionut Biru <ibiru@archlinux.org>
Architecture   : i686
Build Date     : Tue 03 May 2011 01:23:44 PM COT
MD5 Sum        : 20ff951cc07d32fad1ba272dbc7ec957
Description    : Standalone Mail/News reader

[testuser@testserver ~]$ 
Xyne wrote:

What is the output on the client?

[testuser@testworkstation ~]$ pacman -Si pacman firefox thunderbird
error: package 'pacman' was not found
error: package 'firefox' was not found
error: package 'thunderbird' was not found
[testuser@testworkstation ~]$ 
Xyne wrote:

Also post the output of

ls /var/lib/pacman/sync

on the workstation. The output may be misleading, but the client might be saving the database files with a ".part" extension. If that is true, then post your pacman.conf file so I can see the XferCommand the client is using.

[testuser@testworkstation ~]$ ls /var/lib/pacman/sync/
community  core  extra
[testuser@testworkstation ~]$

Offline

#50 2011-05-12 19:31:48

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: pacserve - easily share Pacman packages between computers

Ravenman wrote:
Xyne wrote:

What is the output on the client?

[testuser@testworkstation ~]$ pacman -Si pacman firefox thunderbird
error: package 'pacman' was not found
error: package 'firefox' was not found
error: package 'thunderbird' was not found
[testuser@testworkstation ~]$ 
Xyne wrote:

Also post the output of

ls /var/lib/pacman/sync

on the workstation. The output may be misleading, but the client might be saving the database files with a ".part" extension. If that is true, then post your pacman.conf file so I can see the XferCommand the client is using.

[testuser@testworkstation ~]$ ls /var/lib/pacman/sync/
community  core  extra
[testuser@testworkstation ~]$

The sync databases on the client appear to be empty. I don't think that it's a pacserve issue because pacserve is correctly redirecting to the mirror.

There are two possibilities. I believe the first is most likely:

1) Curl isn't following the redirects. You can try to use the following XferCommand in pacman.conf:

XferCommand = /usr/bin/curl -L -C - %u > %

Run "pacman -Syy" after you edit the file, then check the output of "pacman -Si". If you see the expected output, try to upgrade.

2) If that doesn't work, then maybe something is wrong with the mirror or the redirection. Remove pacserve from the mirrorlist, and try to upgrade directly with "pacman -Syy", then check the output of "pacman -Si" again.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB