[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

check-repository.py gives errors


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

[benf 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 ?
  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 lthksa01 RedHat]$ vi -R /usr/lib/anaconda-runtime/check-repository.py

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

[benf mylinuxbox kickstart]$ rpm -qa  |grep comps

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.



Registered Linux user number 339435

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]