[Swan] $releasever got rendered into "6Server" on RHEL6

T.J. Yang tjyang2001 at gmail.com
Sat Mar 16 18:52:45 EET 2013


problem log:

[root at mlab-rh6-01 yum.repos.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root at mlab-rh6-01 yum.repos.d]#
[root at mlab-rh6-01 yum.repos.d]# yum search libreswan
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
subscription-manager
This system is not registered to Red Hat Subscription Management. You can
use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
http://download.libreswan.org/binaries/rhel/6Server/x86_64/repodata/repomd.xml:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not
Found"
Trying other mirror.
<snipped>
[root at mlab-rh6-01 yum.repos.d]#


workaround fix


[root at mlab-rh6-01 yum.repos.d]# diff -u rhel-libreswan.repo.orig
 rhel-libreswan.repo
--- rhel-libreswan.repo.orig    2013-03-16 11:47:50.749800381 -0500
+++ rhel-libreswan.repo 2013-03-16 11:48:05.603803447 -0500
@@ -1,7 +1,7 @@
 [libreswan]
 name=Libreswan $releasever - $basearch
 failovermethod=priority
-baseurl=http://download.libreswan.org/binaries/rhel/$releasever/$basearch/
+baseurl=http://download.libreswan.org/binaries/rhel/6/$basearch/
 enabled=1
 metadata_expire=1d
 skip_if_unavailable=1
[root at mlab-rh6-01 yum.repos.d]#

-- 
T.J. Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20130316/c171c5b6/attachment.html>


More information about the Swan mailing list