Problem with file: URLs

Orion Poplawski orion at cora.nwra.com
Thu Nov 16 18:47:56 UTC 2006


I'm trying with the following yum.conf.x86_64:

[main]
cachedir=/tmp/fist
#keepcache=0
#debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
reposdir=./
#plugins=1
metadata_expire=1800
#exclude=\*.i?86


# repos

[core]
name=core
baseurl=file:///data/sw1/fedora/core/6/x86_64/os/
enabled=1


[updates-released]
name=updates
baseurl=file:///data/sw1/fedora/core/updates/6/x86_64/
enabled=1

[extras]
name=extras
baseurl=file:///data/sw1/fedora/extras/6/x86_64/
enabled=1


[local]
name=local
baseurl=file:///data/sw1/fedora/CoRPMS/6/x86_64/
enabled=1


pungi runs through the dependencies then chokes on the first download:


Downloading pango-1.14.6-2.fc6.i386.rpm
Traceback (most recent call last):
   File "/usr/bin/pungi", line 100, in ?
     main()
   File "/usr/bin/pungi", line 42, in main
     mygather.downloadPackages()
   File "/usr/lib/python2.4/site-packages/pypungi/gather.py", line 132, 
in downloadPackages
     os.link(local, os.path.join(pkgdir, os.path.basename(remote)))
OSError: [Errno 2] No such file or directory

but it is there:

# ls -l /data/sw1/fedora/core/updates/6/x86_64/pango-1.14.6-2.fc6.i386.rpm
-rw-r--r-- 1 537 537 336675 Oct 30 11:53 
/data/sw1/fedora/core/updates/6/x86_64/pango-1.14.6-2.fc6.i386.rpm


(Pdb) print local
pungi/cache/pango-1.14.6-2.fc6.i386.rpm
(Pdb) print pkgdir
./6/x86_64/os/Fedora
(Pdb) print os.path.basename(remote)
pango-1.14.6-2.fc6.i386.rpm

Looks like repo.getPackage(pkg) doesn't actually do anything if it is a 
file: url:

             repo.getPackage(pkg)
             os.link(local, os.path.join(pkgdir, os.path.basename(remote)))

so there is nothing to link when we get to os.link.  Looks like for 
file: urls we'll need to find the path to the package in the repo and 
link (or copy, if needed) that


-- 
Orion Poplawski
System Administrator                  303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com




More information about the buildsys mailing list