----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Tuesday, February 10, 2009 4:42 PM
Subject: Re: [Spacewalk-list] reposync and rhnpush]
Ok, as far as I can tell, there's a bug in reposync.
When I use the call straight, and give it -a x86_64, it completely ignores
the flag, and overrides it with the current archetecture (32-bit, in this
case).
I've copied the CentOS-Base.repo from /etc/yum.repos.d. I've tried:
a) commenting out the mirrorlist, and uncommenting the
baseurl, as it says in the original.
b) replacing $releasever and &arch with literals - in
this case, 5.2 and x86_64
In both cases, it errors out with the following error messages. As I noted
before, instead of reading *only* the config file I give it on the command
line, it is very clear that it is reading *both* /etc/yum.repos.d and the
config file specified on the command line with -c.
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Traceback (most recent call last):
File "/usr/bin/reposync", line 264, in ?
main()
File "/usr/bin/reposync", line 227, in main
url = urljoin(baseurl,remote)
UnboundLocalError: local variable 'baseurl' referenced before assignment
Does *anyone* have an idea how I can use reposync on a 32-bit o/s to suck
down the x86_64 CentOS 5.2?
mark "clues for the poor?"
This is the only way I've been able to get reposync to work, create a
repository file (see below), then run reposync like this:
reposync --arch=x86_64 --repoid=updates64 --download_path=/var/repo
[r...@hubble yum.repos.d]# more CentOS-Base64.repo
# CentOS-Base64.repo
#released updates
[updates64]
name=CentOS-$releasever - Updates
##mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.gigenet.com/centos/$releasever/updates/x86_64/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras64]
name=CentOS-$releasever - Extras
##mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.gigenet.com/centos/$releasever/extras/x86_64/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list