check-repository.py gives errors

Ben Fitzgerald ben_m_f at yahoo.co.uk
Tue Nov 16 13:49:22 UTC 2004


Hi,

I'm trying to check my comps file, hdlist and rpms using the
following (my install dir is /export/opt/kickstart):

[benf at lthksa01 kickstart]$ /usr/lib/anaconda-runtime/check-repository.py /export/opt/kickstart
Traceback (most recent call last):
  File "/usr/lib/anaconda-runtime/check-repository.py", line 95, in ?
    CheckRepository(sys.argv[1])
  File "/usr/lib/anaconda-runtime/check-repository.py", line 91, in __init__
    self.getCompsList ()
  File "/usr/lib/anaconda-runtime/check-repository.py", line 54, in getCompsList
    self.comps = self.readComps(self.hdList)
  File "/usr/lib/anaconda-runtime/check-repository.py", line 62, in readComps
    '/RedHat/base/comps', hdlist)
  File "/usr/lib/anaconda/comps.py", line 1046, in __init__
    self.readCompsFile(file, self.packages)
  File "/usr/lib/anaconda/comps.py", line 732, in readCompsFile
    file = urllib2.urlopen(filename)
  File "/usr/lib/python2.2/urllib2.py", line 138, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.2/urllib2.py", line 326, in open
    type_ = req.get_type()
  File "/usr/lib/python2.2/urllib2.py", line 230, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /export/opt/kickstart/RedHat/base/comps
[benf at lthksa01 RedHat]$ vi -R /usr/lib/anaconda-runtime/check-repository.py

Am I missing a package that python requires? I have the following:

[benf at mylinuxbox kickstart]$ rpm -qa  |grep comps
comps-extras-9.0.4-1
comps-3AS-0.20040113

There seem to be few docs on check-repository.py. Many describe
earlier versions of the comps file (xml based).

Perhaps this is simply my command line syntax.

Any help is greatly appreciated.

Thanks,

Ben

-- 
Registered Linux user number 339435




More information about the Kickstart-list mailing list